/* ============================================================================
 * components.css — every reusable piece.
 * ==========================================================================*/

/* --- eyebrow ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-body);
  font-size: var(--t-eyebrow); font-weight: 700;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--violet-deep); margin-bottom: var(--s4);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.band--dark .eyebrow { color: var(--teal); }

/* --- buttons -------------------------------------------------------------
 * A button is a target first. Nothing here is smaller than 44px tall.
 * ------------------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s6);
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease),
              color var(--d-ui) var(--ease), transform var(--d-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary, .band--dark .btn--primary, .hero .btn--primary,
.finale .btn--primary, .footer-card .btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover, .band--dark .btn--primary:hover, .hero .btn--primary:hover,
.finale .btn--primary:hover, .footer-card .btn--primary:hover { background: var(--violet-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet-deep); background: var(--violet-tint); }
.band--dark .btn--ghost, .on-dark .btn--ghost, .hero .btn--ghost, .finale .btn--ghost, .footer-card .btn--ghost { color: #fff; border-color: var(--on-dark-line); }
.band--dark .btn--ghost:hover, .on-dark .btn--ghost:hover, .hero .btn--ghost:hover, .finale .btn--ghost:hover, .footer-card .btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--sm { min-height: 44px; padding: var(--s2) var(--s5); font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 600; text-decoration: none; min-height: 44px;
}
.link-arrow::after { content: '→'; transition: transform var(--d-ui) var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- header --------------------------------------------------------------
 * A floating pill on wide screens; a plain bar with a drawer on narrow ones.
 * Four entries fit in one row at 1024 because three of them are groups: the
 * depth lives in the panels, not in the bar.
 * ------------------------------------------------------------------------*/
/* The header's height is constant. Anything that reads it — the sub-navigation
 * rail, the sticky media columns, the scroll padding a fragment link needs —
 * would otherwise be reading a number that is mid-transition. The stuck state
 * shrinks the pill with a transform instead, which changes nothing it sits in
 * front of. */
/* --- glass -----------------------------------------------------------------
 * The one material the navigation is made of: the header pill, the platform
 * dock's bubble and its tray. A dark tint over a blur, lit from above by a
 * hairline inside the top edge. It is a scrim doing a legibility job on
 * content that moves underneath it, and it appears nowhere else on the site.
 *
 * isolation: the light layer and the lens sit at z-index -1, which has to mean
 * "behind what this pill holds" and never "behind the pill".
 *
 * The tint used to be .66 over a 20px blur, which was not enough scrim to do
 * the legibility job the design system asks of it: on platform and use-cases
 * a sentence of body copy resolved through the dock's tray and bubble, which
 * reads as a rendering fault rather than an overlay. .88 over 30px is the
 * same material — navy tint, one blur, the hairline above — with enough of it
 * to stop the page being read through. The header pill's own tint is not this
 * one: motion.css sets it per scroll state, and its stuck state already sits
 * at .88, so the bar and the dock now carry the same weight.
 * ------------------------------------------------------------------------*/
.glass {
  position: relative; isolation: isolate;
  background: rgba(13, 19, 51, .88);
  -webkit-backdrop-filter: saturate(170%) blur(30px);
  backdrop-filter: saturate(170%) blur(30px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18),
              inset 0 -1px 0 rgba(255, 255, 255, .04),
              0 16px 40px -16px rgba(3, 8, 40, .5);
}
/* The light on the glass: a wash down from the top edge, and a soft highlight
 * that glass.js slides along under a fine pointer. The layer is clipped to the
 * pill's own shape and sits behind everything the pill holds. */
.glass__light {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 42%,
                                       rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, .03));
}
.glass__sheen {
  position: absolute; top: -60%; left: -140px; width: 280px; height: 220%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
  opacity: 0;
}
/* The capsule that sits under the current item and glides to the one under
 * the pointer. glass.js sizes and places it; only its transform ever moves. */
.lens {
  position: absolute; top: 0; left: 0; z-index: -1;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  transform-origin: 0 0; pointer-events: none; opacity: 0;
}
.lens.is-on { opacity: 1; }
/* Once the lens is placed it is the only highlight in a bar: the items give up
 * their own, so the capsule is never painted twice. */
.has-lens .nav__item > a:hover, .has-lens .nav__trigger:hover,
.has-lens .nav__item > a[aria-current="page"],
.has-lens .nav__item.is-active > .nav__trigger,
.has-lens .nav__trigger[aria-expanded="true"] { background: none; }

.site-header { position: sticky; top: 0; z-index: 50; padding: var(--s3) 0; }
.nav {
  display: flex; align-items: center; gap: var(--s4); flex-wrap: nowrap;
  border-radius: var(--r-pill);
  padding: var(--s2) var(--s2) var(--s2) var(--s5);
}
.nav__brand { display: flex; align-items: center; gap: var(--s2); min-height: 44px; text-decoration: none; color: #fff; margin-right: auto; }
.nav__brand img { width: 26px; height: 27px; }
.nav__brand b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; }
.nav__links { display: none; gap: var(--s1); list-style: none; margin: 0; padding: 0; min-width: 0; }
.nav__links li { margin: 0; }
.nav__item { position: relative; }

/* A plain link and a group's button are the same object in the bar, so they
 * are written as one rule. Both are matched as direct children, which leaves
 * the panels below free to style their own leaves. */
.nav__item > a,
.nav__trigger {
  display: flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: var(--s2) var(--s4);
  background: none; border: 0; border-radius: var(--r-pill);
  color: var(--on-dark); font-family: inherit; font-size: .93rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--d-ui) var(--ease), color var(--d-ui) var(--ease);
}
.nav__item > a:hover,
.nav__trigger:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav__item > a[aria-current="page"],
.nav__item.is-active > .nav__trigger,
.nav__trigger[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .13); }
.nav__chev { width: 10px; height: 6px; flex: none; opacity: .7; }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: scaleY(-1); }

/* The panel copies the currency picker's visuals, because they are the same
 * kind of object: a light card hung under a dark bar. */
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20;
  min-width: 300px; padding: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
}
/* The last group would otherwise hang off the right edge at 1024. */
.nav__item:last-child > .nav__menu { left: auto; right: 0; }
/* The aside is eight tiled rows in two columns, so it is sized by what a row
 * actually needs — its padding, a 32px tile, the gap and the longest label —
 * and the first column takes whatever is left. The old 1.1fr split and 560px
 * floor were written before the tiles existed: they left each aside label
 * 50px and pushed "Notifications" out through the side of the panel. 660px is
 * the narrowest floor that also keeps "Connect, configure, launch, operate"
 * on one line, and the panel still clears the viewport at 1024, which is the
 * tight end of the pill. The panel cannot size itself to its content: it is
 * absolutely positioned inside a bar item, so its shrink-to-fit width is
 * measured against that item, and the floor is the only thing holding it
 * open. */
.nav__menu--wide {
  display: grid; grid-template-columns: 1fr max-content; gap: var(--s5);
  min-width: 660px;
}
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu li { margin: 0; }
.nav__menu a {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 44px; padding: var(--s2) var(--s3); border-radius: var(--r-sm);
  color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: background var(--d-ui) var(--ease), color var(--d-ui) var(--ease);
}
/* The rule above centres the anchor's children, which is right down a column
 * and wrong across a row: with the direction flipped, the centring works along
 * the inline axis, so every row centres its own tile-and-copy block and the
 * icon column zig-zags with the length of the label. A tiled row starts at the
 * start. */
.nav__menu a.nav__icon-link {
  flex-direction: row; justify-content: flex-start; align-items: center; gap: var(--s3);
}
.nav__icon { width: 32px; height: 32px; flex: none; display: block; object-fit: cover; border-radius: var(--r); }
.nav__copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.nav__menu a:hover { background: var(--violet-tint); color: var(--violet-deep); }
.nav__menu a[aria-current="page"] { color: var(--violet-deep); background: var(--violet-tint); }
.nav__menu small { font-size: .8rem; font-weight: 400; line-height: 1.35; color: var(--ink-mute); }
.nav__menu a:hover small, .nav__menu a[aria-current="page"] small { color: inherit; }
.nav__menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s2); }
.nav__menu-grid a { font-size: .9rem; font-weight: 500; }
.nav__menu-all { margin-top: var(--s2); border-top: 1px solid var(--line); padding-top: var(--s2); }
.nav__menu-all a { flex-direction: row; align-items: center; gap: var(--s2); color: var(--violet-deep); }

/* Reveal. Hidden only while JavaScript is running: without it the panel is a
 * plain block that hover and keyboard focus bring into view.
 *
 * Visibility is stepped, not eased. A transitioned visibility still computes
 * as hidden on the frame the panel opens, and a browser refuses to move focus
 * into a hidden element, so ArrowDown would open the panel and leave the
 * keyboard behind. Opening flips it at once; closing holds it until the fade
 * has finished, which is what keeps the panel from vanishing mid-fade. */
html.js .nav__menu {
  opacity: 0; visibility: hidden; translate: 0 6px; scale: .97;
  transform-origin: var(--s6) 0;
  transition: opacity var(--d-ui) var(--ease), translate var(--d-glass) var(--ease-glass),
              scale var(--d-glass) var(--ease-glass), visibility 0s linear var(--d-ui);
}
/* The last group's panel hangs from the right, so it grows from there. */
html.js .nav__item:last-child > .nav__menu { transform-origin: calc(100% - var(--s6)) 0; }
html.js .nav__trigger[aria-expanded="true"] + .nav__menu {
  opacity: 1; visibility: visible; translate: none; scale: none;
  transition: opacity var(--d-ui) var(--ease), translate var(--d-glass) var(--ease-glass),
              scale var(--d-glass) var(--ease-glass), visibility 0s;
}
html:not(.js) .nav__menu { display: none; }
html:not(.js) .nav__item:is(:hover, :focus-within) .nav__menu { display: block; }
html:not(.js) .nav__item:is(:hover, :focus-within) .nav__menu--wide { display: grid; }

.nav__cta { display: none; }
.nav__toggle {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: rgba(255, 255, 255, .1); border: 0; border-radius: 50%; color: #fff; cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; }
@media (min-width: 1024px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle { display: none; }
}
/* 1024 to 1279 is the tight end of the pill: four groups, the picker and the
 * call to action have to share one row without wrapping. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav { gap: var(--s3); }
  .nav__item > a, .nav__trigger { padding-inline: var(--s3); }
  .cur > summary { padding: 0 var(--s2); }
}

/* Drawer: full screen, so a thumb can reach everything. */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--navy-900); color: #fff;
  padding: var(--s6) var(--gutter) var(--s9);
  display: flex; flex-direction: column; gap: var(--s5);
  transform: translateY(-100%); visibility: hidden;
  /* Stepped, for the same reason the menu panels step it: focus cannot move
   * into an element the browser still computes as hidden. */
  transition: transform var(--d-ui) var(--ease), visibility 0s linear var(--d-ui);
  overflow-y: auto;
}
.drawer.is-open {
  transform: none; visibility: visible;
  transition: transform var(--d-ui) var(--ease), visibility 0s;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer__list > li { margin: 0; border-bottom: 1px solid var(--on-dark-line); }
.drawer__list > li > a,
.drawer__acc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 56px; padding: var(--s3) 0; list-style: none; cursor: pointer;
  color: #fff; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  text-decoration: none;
}
/* space-between above is for a group's summary, where it pushes the chevron
 * to the far edge. A tiled top-level link puts two children in that same box
 * and inherits the shove, throwing its label the width of the drawer away from
 * its tile. It starts at the start instead, and the rule costs nothing if the
 * tile ever goes: a row with one child has nothing left to space out. */
.drawer__list > li > a.nav__icon-link { justify-content: flex-start; }
/* A sub-row is indented by --s5, so a top-level row carrying a tile has to be
 * indented with it or the drawer's icon column reads as two columns. */
.drawer__list > li > a.nav__icon-link { padding-left: var(--s5); }
.drawer__acc > summary::-webkit-details-marker { display: none; }
.drawer__acc > summary .nav__chev { width: 14px; height: 9px; transition: transform var(--d-ui) var(--ease); }
.drawer__acc[open] > summary .nav__chev { transform: scaleY(-1); }
.drawer__sub { padding-bottom: var(--s3); }
.drawer__sub li { margin: 0; }
.drawer__sub a {
  display: flex; align-items: center; min-height: 44px; padding-left: var(--s5);
  color: var(--on-dark); font-size: 1rem; text-decoration: none;
}
.drawer__sub a.nav__icon-link { gap: var(--s3); }
.drawer__sub a:hover { color: #fff; }
.drawer__sub a[aria-current="page"] { color: #fff; font-weight: 700; }
/* The tiles are baked on --navy-900 and the drawer's ground is --navy-900, so
 * a tile's edge all but disappears and its artwork reads as floating loose on
 * the panel. An outline pulled back inside the box draws that edge again; an
 * inset box-shadow would paint behind the image and never be seen. */
.drawer .nav__icon { outline: 1px solid var(--on-dark-line); outline-offset: -1px; }
.drawer__sub-label { padding: var(--s3) 0 0 var(--s5); }
.drawer__sub-label .eyebrow { margin-bottom: 0; color: var(--teal); }
/* The drawer's own close button sits in its header, not in the page nav. */
.drawer__close { margin-left: auto; }
.drawer .btn { margin-top: auto; }

/* Without JavaScript the toggle cannot open anything, so below the desktop
 * breakpoint the drawer stops being a panel and becomes the page's navigation:
 * a plain block under the header, with both close buttons gone. Above it the
 * bar already carries every link, so the drawer stays out of the way. */
@media (max-width: 1023px) {
  html:not(.js) .drawer {
    position: static; transform: none; visibility: visible;
    height: auto; padding-block: var(--s4);
  }
  html:not(.js) .drawer__close,
  html:not(.js) .nav__toggle { display: none; }
}

/* --- in-page sub-navigation ----------------------------------------------
 * A rail of anchors under the header on the two long pages, and a static
 * table of contents on the legal pages. The rail sits at the live header
 * height, which the motion layer writes into --header-h.
 * ------------------------------------------------------------------------*/
.subnav {
  position: sticky; top: var(--header-h, 86px); z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.subnav ul {
  display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  scroll-padding-inline: var(--s4);
}
.subnav ul::-webkit-scrollbar { width: 0; height: 0; }
.subnav li { margin: 0; flex: none; }
.subnav a {
  display: flex; align-items: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s4); border-radius: var(--r-pill);
  color: var(--ink-mute); font-size: .9rem; font-weight: 600; white-space: nowrap;
  text-decoration: none;
  transition: background var(--d-ui) var(--ease), color var(--d-ui) var(--ease);
}
.subnav a:hover { background: var(--violet-tint); color: var(--violet-deep); }
.subnav a[aria-current="location"] { background: var(--violet-tint); color: var(--violet-deep); }
.subnav img { width: 18px; height: 18px; flex: none; }

/* --- the dock ---------------------------------------------------------------
 * The platform page's rail, folded into a bubble that floats at the foot of
 * the screen. At rest it names the section being read; under a pointer, a tap
 * or a key it opens into the full set of services, and closes again when the
 * pointer leaves or a service is chosen. Every rule here is scoped to html.js:
 * with no script the same markup is the plain rail above, and the bubble's
 * button, which could open nothing, is not shown at all.
 * ------------------------------------------------------------------------*/
.subnav__handle { display: none; }
.subnav__tray { display: contents; }
html:not(.js) .subnav .glass__light { display: none; }

html.js .subnav--dock {
  position: fixed; top: auto; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s4));
  z-index: 45;
  display: grid; justify-items: center; align-items: end;
  padding: 0 var(--s3);
  background: none; border: 0;
  /* The strip is the width of the screen so the bubble can centre itself; only
   * the bubble and the tray are anything a pointer can land on. */
  pointer-events: none;
}
html.js .subnav--dock > .container { display: contents; }
html.js .subnav--dock .subnav__handle,
html.js .subnav--dock .subnav__tray { grid-area: 1 / 1; pointer-events: auto; }

/* The bubble is one width whatever it says, so the name of a section can
 * change under it without the pill changing size. subnav.js sizes it to the
 * longest name on the page; 13rem is only the value for the first frame. */
html.js .subnav--dock .subnav__handle {
  display: flex; align-items: center; gap: var(--s2);
  width: 13rem; max-width: 100%; min-height: 48px; padding: 0 var(--s4);
  border-radius: var(--r-pill);
  color: #fff; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2;
  text-align: left; cursor: pointer;
}
.subnav__handle-icon, .subnav__handle-glyph { width: 18px; height: 18px; flex: none; }
.subnav__handle-glyph, .subnav__handle.has-current .subnav__handle-icon { display: none; }
.subnav__handle.has-current .subnav__handle-glyph { display: block; }
.subnav__handle-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subnav__handle-chev { width: 10px; height: 6px; flex: none; opacity: .7; transform: scaleY(-1); }

html.js .subnav--dock .subnav__tray {
  display: block; padding: var(--s2);
  border-radius: var(--r-lg);
  width: min(22rem, 100%);
}
html.js .subnav--dock ul {
  display: grid; grid-template-columns: 1fr; gap: var(--s1);
  overflow: visible;
}
html.js .subnav--dock a {
  min-height: 44px; padding: 0 var(--s3);
  color: var(--on-dark); font-size: .875rem;
}
/* The service glyphs are violet for a light ground. On the glass they are
 * turned white with their two layers intact: the filter keeps each layer's
 * own transparency, so the quieter shape stays quieter. */
html.js .subnav--dock img { filter: brightness(0) invert(1); opacity: .92; }
/* The lens is the highlight; the link itself only brightens. */
html.js .subnav--dock a:hover,
html.js .subnav--dock a[aria-current="location"] { background: none; color: #fff; }
@media (min-width: 480px) {
  html.js .subnav--dock .subnav__tray { width: min(28rem, 100%); }
  html.js .subnav--dock ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  html.js .subnav--dock .subnav__tray { width: auto; border-radius: var(--r-pill); }
  html.js .subnav--dock ul { display: flex; }
}
/* Eight services in one row have to fit inside a 1024 screen. */
@media (min-width: 1024px) and (max-width: 1279px) {
  html.js .subnav--dock a { padding-inline: var(--s2); }
}

/* A fragment link has to clear the header and the rail together. The class is
 * on <body>, but scroll padding only counts on the scroll container, which is
 * the root element. Browsers without :has() keep the plain header offset. */
/* --header-h-rest, not --header-h: the live height is 0 while the header is
 * hidden, and a fragment jump upwards brings the header straight back, so an
 * offset measured from the hidden state lands the section behind the rail. */
:root:has(body.has-subnav) {
  scroll-padding-top: calc(var(--header-h-rest, 86px) + var(--subnav-h, 49px) + 16px);
}

.toc {
  margin-bottom: var(--space-block);
  padding: var(--s5) var(--s6);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.toc .eyebrow { margin-bottom: var(--s2); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; break-inside: avoid; }
.toc a {
  display: block; min-height: 44px; padding: var(--s3) 0;
  font-size: .95rem; text-decoration: none; color: var(--violet-deep);
}
.toc a:hover { text-decoration: underline; }
@media (min-width: 640px) {
  .toc ol { columns: 2; column-gap: var(--s7); }
}

/* --- currency ------------------------------------------------------------
 * A <details> so it opens and closes without JavaScript.
 * ------------------------------------------------------------------------*/
.cur { position: relative; }
.cur > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s2);
  min-height: 44px; min-width: 44px; padding: 0 var(--s3); border-radius: var(--r-pill);
  border: 1px solid var(--on-dark-line); color: var(--on-dark);
  font-size: .85rem; font-weight: 600;
}
/* The flag stands for the country and its currency; the symbol and code live
 * in the menu rows and in the amounts themselves. */
.cur__flag {
  width: 24px; height: 18px; flex: none; object-fit: cover;
  border-radius: 3px; box-shadow: 0 0 0 1px var(--on-dark-line);
}
.cur__menu .cur__flag { box-shadow: 0 0 0 1px var(--line); }
.cur > summary::-webkit-details-marker { display: none; }
.cur > summary::after { content: '▾'; font-size: .7em; opacity: .8; }
.cur > summary:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cur__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-xl); padding: var(--s2); min-width: 250px;
  list-style: none; margin: 0;
}
.cur__menu li { margin: 0; }
.cur__menu button {
  display: flex; align-items: center; gap: var(--s3); width: 100%;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
  padding: var(--s3); font: inherit; font-size: .9rem; color: var(--ink); text-align: left;
  min-height: 44px;
}
.cur__menu button:hover { background: var(--violet-tint); }
.cur__menu button[aria-pressed="true"] { color: var(--violet-deep); font-weight: 700; }
.cur__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.cur__text b { font-weight: 600; }
.cur__text small { color: var(--ink-mute); font-size: .85em; }
.cur__menu button[aria-pressed="true"] .cur__text small { color: inherit; }

/* --- cards ---------------------------------------------------------------
 * One treatment, one dark variant. Not four different boxes.
 * ------------------------------------------------------------------------*/
.card {
  position: relative; overflow: clip;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s6);
  display: flex; flex-direction: column; gap: var(--s3);
}
.card h3 { margin: 0; font-size: var(--t-h4); }
.card p { margin: 0; color: var(--ink-mute); }
.card__icon { width: 48px; height: 48px; flex: none; display: block; object-fit: cover; border-radius: var(--r); }
/* The cover bleeds to the card's edges: it is widened by the card's padding on
 * both sides and pulled back out by an equal negative margin. base.css caps
 * every image at `max-width: 100%`, which would clamp that width back to the
 * content box while the negative margins still applied, leaving the picture
 * flush left and a padding-wide gutter down the right. The cap is lifted here
 * and nowhere else. */
.card__cover {
  width: calc(100% + var(--s6) + var(--s6)); max-width: none;
  height: auto; aspect-ratio: 3 / 2;
  flex: none; display: block; object-fit: cover;
  margin: calc(-1 * var(--s6)) calc(-1 * var(--s6)) 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card--dark {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  border-color: transparent; color: #fff;
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark-mute); }
/* This card's gradient ends on --navy-900 and the tiles are baked on
 * --navy-900, so the tile edge vanishes into the card and the artwork's violet
 * ring floats with no chip under it. The same rule as the drawer's tiles: an
 * outline pulled inwards, not an inset shadow, which paints behind an image. */
.card--dark .card__icon { outline: 1px solid var(--on-dark-line); outline-offset: -1px; }
.card__n {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  color: var(--violet); letter-spacing: .06em;
}
.card--dark .card__n { color: var(--teal); }

/* Numbered line: the "+" marker, no box around it. */
.numline { display: flex; gap: var(--s4); padding: var(--s4) 0; }
.numline + .numline { border-top: 1px solid var(--line); }
.band--dark .numline + .numline, .hero .numline + .numline { border-top-color: var(--on-dark-line); }
.numline__n { font-family: var(--font-mono); font-size: .85rem; color: var(--violet-deep); flex: none; padding-top: 2px; }
.band--dark .numline__n, .hero .numline__n, .finale .numline__n { color: var(--teal); }
.numline b { display: block; font-size: 1.05rem; margin-bottom: var(--s1); }
.numline p { margin: 0; font-size: .95rem; }

/* --- check list ---------------------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s4); max-width: 62ch; }
.checks li { display: flex; gap: var(--s3); margin: 0; }
.checks li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--violet-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F3CC3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.band--dark .checks li::before { background-color: rgba(96, 188, 202, .18); }

/* --- fact band ----------------------------------------------------------- */
.facts { display: flex; flex-wrap: wrap; gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.facts li {
  margin: 0; padding: var(--s3) var(--s5);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .95rem; color: var(--ink-mute);
}
.facts li b { color: var(--ink); font-weight: 600; }
.band--dark .facts li, .hero .facts li, .finale .facts li { border-color: var(--on-dark-line); color: var(--on-dark); }
.band--dark .facts li b, .hero .facts li b, .finale .facts li b { color: #fff; }

/* --- device frames ------------------------------------------------------- */
.device {
  position: relative; flex: none;
  background: var(--chassis); border-radius: var(--r-phone);
  padding: 10px; box-shadow: var(--shadow-frame);
  width: min(296px, 78vw);
}
.device::before {
  content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: var(--chassis); border-radius: 0 0 14px 14px; z-index: 3;
}
.device__screen {
  border-radius: 34px; overflow: hidden; background: var(--dw-bg, #F3F5FB);
  aspect-ratio: 296 / 604; position: relative;
}
.browser {
  border-radius: var(--r-md); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-xl); width: 100%;
}
.browser__bar { display: flex; align-items: center; gap: var(--s3); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; flex: none; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser__url {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-mute);
  background: var(--surface); border-radius: var(--r-sm); padding: 4px 10px; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__body { position: relative; overflow: clip; aspect-ratio: 16 / 10; }
/* A frame that is scrolled to one region of a screen is sized by that region
 * instead, which replicas.js measures into --body-h. */
.browser__body--fit { aspect-ratio: auto; height: var(--body-h, 420px); }

/* The replica host: scaled to whatever width it is given. The scale is set by
 * replicas.js; the fallback keeps the frame correct before that runs. */
.rep-host { position: relative; width: 100%; min-width: 0; overflow: hidden; pointer-events: none; user-select: none; }
.rep-host .rep-inner {
  width: var(--shot-w, 393px);
  transform: scale(var(--shot-scale, 1)) translateY(calc(-1 * var(--shot-y, 0px)));
  transform-origin: top left;
}
.device__screen .rep-host { height: 100%; }
.browser__body .rep-host { height: 100%; }

/* A single notification card tucked behind the phone. Static: it says
 * something true about the product, so it does not need to move. */
.device-note {
  position: absolute; left: -14%; bottom: 5%; z-index: 4;
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--shadow-xl); padding: var(--s3) var(--s4);
  display: flex; align-items: center; gap: var(--s3);
  font-size: .82rem; white-space: nowrap;
}
.device-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.device-note b { font-weight: 600; }
.device-note span { color: var(--ink-mute); }
@media (max-width: 899px) { .device-note { display: none; } }

/* --- image slots --------------------------------------------------------- */
.slot {
  aspect-ratio: var(--ar, 4 / 3); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1);
  border: 2px dashed var(--line-strong); background: var(--surface-2);
  color: var(--ink-mute); text-align: center; padding: var(--s5); margin: 0;
}
.slot__id { font-family: var(--font-mono); font-size: .75rem; color: var(--violet); }
.slot__what { font-weight: 600; color: var(--ink-mute); }
.slot__note { font-size: .8rem; color: var(--ink-mute); }
.slot--live { border: 0; padding: 0; background: none; display: block; }
.slot--live img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }

/* --- code ---------------------------------------------------------------- */
.code {
  background: var(--navy-900); border: 1px solid var(--on-dark-line);
  border-radius: var(--r-md); overflow: hidden;
}
.code__bar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--on-dark-line);
  font-family: var(--font-mono); font-size: .78rem; color: var(--on-dark-mute);
}
.code__bar b { color: var(--teal); font-weight: 600; }
.code pre { margin: 0; padding: var(--s4); overflow-x: auto; }
.code pre:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.code code { font-size: .8rem; line-height: 1.65; color: #D9E2F5; white-space: pre; }
.code .t-key { color: #9DC2FF; }
.code .t-str { color: #8FE3C0; }
.code .t-num { color: #F0B37E; }
.code .t-com { color: #7C89A8; font-style: italic; }
.code__note { padding: var(--s3) var(--s4); border-top: 1px solid var(--on-dark-line); font-size: .82rem; color: var(--on-dark-mute); }

/* --- faq ----------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: var(--s5) var(--s8) var(--s5) 0;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; position: relative;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--violet); font-weight: 400;
  transition: transform var(--d-ui) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item > div { padding-bottom: var(--s5); color: var(--ink-mute); max-width: 68ch; }

/* --- forms --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field label { font-weight: 600; font-size: .93rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: var(--s3) var(--s4); min-height: 48px; width: 100%;
  transition: border-color var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint);
}
.field__hint { font-size: .85rem; color: var(--ink-mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- notices ------------------------------------------------------------- */
.notice {
  border-radius: var(--r-md); padding: var(--s4) var(--s5);
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: .95rem; margin-bottom: var(--s6);
}
.notice--draft { border-color: var(--warn-line); background: var(--warn-tint); color: var(--warn-ink); }

/* --- footer -------------------------------------------------------------- */
.site-footer { padding: var(--s7) 0 var(--s9); background: var(--surface); }
.footer-card {
  position: relative; overflow: clip; isolation: isolate;
  background: var(--navy-900); border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark); border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.footer-card h2 { color: #fff; }
.footer-card .link-arrow { color: #fff; }
.footer-card > .footer-grid, .footer-card > .footer-legal { position: relative; z-index: 1; }
.footer-grid { display: grid; gap: var(--s7); }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .footer-grid > :first-child { grid-column: auto; }
}
.footer-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--teal); margin-bottom: var(--s4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0; }
.footer-col a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--on-dark); text-decoration: none; font-size: .95rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.footer-brand img { width: 30px; height: 31px; }
.footer-brand b { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration-color: var(--on-dark-mute); }
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6);
  margin-top: var(--s8); padding-top: var(--s6);
  border-top: 1px solid var(--on-dark-line);
  font-size: .85rem; color: var(--on-dark-mute);
}


/* --- spacing utilities ---------------------------------------------------
 * Two step sizes, so a margin never has to be written into the markup. They
 * sit at the end of this file on purpose: several components above reset
 * their own margin to zero, and a utility has to be able to beat that. Keep
 * any new component rule above this block.
 * ------------------------------------------------------------------------*/
.mt-4 { margin-top: var(--s4); }
.mt-block { margin-top: var(--space-block); }
