/* ===========================================================
   MSFS CONTROL PROFILE HUB — base template
   Header + primary navigation, second iteration.
   Palette pulled directly from the logo artwork.
=========================================================== */

:root {

  /* ---- colour tokens (sampled from the header graphic) ---- */
  --navy-950: #010c1d;   /* header fallback / strip fill        */
  --navy-900: #071b34;   /* mobile menu panel, slightly lifted  */
  --navy-800: #16314f;   /* borders / dividers on navy          */
  --blue-300: #6db2f5;   /* light line — hover indicator        */
  --blue-500: #1387f3;   /* bright blue — gradient top of logo  */
  --blue-600: #0e74d4;   /* primary interactive blue            */
  --blue-800: #004488;   /* deep blue — gradient base of logo   */
  --red-500:  #de1f26;   /* ribbon red — divider accent only    */

  --ink-100: #f3f7fc;    /* headings / logo-adjacent text on navy */
  --ink-300: #a9bdd6;    /* muted nav text                        */

  --page-bg: #232e39;    /* page background — shows the shadow fade */

  /* the header/banner/strip are all driven by ONE height so the
     banner art and the tiled shadow strip always scale together */
  --header-height: 200px;
  --divider-width: 3px;
  --nav-inset: 1.25rem;   /* gap between divider and nav links   */
  --nav-divider-gap: 1.5rem;   /* space after the nav menu, before the divider */
  --nav-divider-top-gap: 2rem;   /* your control for the top gap */


  /* the banner/strip art fades to transparent over roughly its
     bottom 14% — content needs to clear that band, and it has
     to scale whenever --header-height changes */
  --fade-guard: calc(var(--header-height) * 0.14);

  --font-display: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: #1a2433;
  -webkit-font-smoothing: antialiased;
}

img { max-width: none; display: block; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   Header — banner | divider | nav strip
   All three share --header-height so the banner art and the
   tiled shadow strip are always rendered at identical scale.
--------------------------------------------------------- */
.site-header {
  position: relative;
  background: var(--page-bg);
}

.site-header__row {
  display: flex;
  align-items: stretch;
  height: var(--header-height);
}

/* banner art, bolted to the left edge of the viewport at
   full header height — it carries its own navy fill and its
   own baked-in bottom fade, nothing else is drawn behind it */
.site-header__brand {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.site-header__logo {
  height: 100%;
  width: auto;
}

/* slim accent line that closes the seam between the banner
   art and the strip, rather than trying to colour-match a
   CSS fill to the flattened PNG exactly */

.vertical-divider {
  flex-shrink: 0;
  width: var(--divider-width);
  height: 100%;
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-800) 65%, var(--red-500) 100%);
  box-shadow: 0 0 10px rgba(19, 135, 243, 0.55);
}
/* second strip: same height as the banner, filled with the
   tiled shadow/fade art repeated across the remaining width */
.site-header__strip {
  /* no position here — .site-header is the positioning context
     for the mobile dropdown, so it can span the full header
     width rather than just the strip's portion of it */
  flex: 1 1 auto;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  /* keep the nav clear of the art's fade band at the bottom
     (see --fade-guard) by shrinking the space it centers in */
  padding-bottom: var(--fade-guard);
  /* NOTE: deliberately no background-color fallback here — the
     art fades to full transparency at the bottom, and that has
     to reveal the page background underneath, not a navy fill */
  background-image: url('../images/header-dropshadow.png');
  /* the strip art is a flat, non-repeating vertical gradient —
     stretched full-bleed rather than tiled, so there are no
     seams from repeating a heavily-downscaled sliver */
  background-repeat: no-repeat;
  background-position: top left;
  background-size: 100% 100%;
}

.site-header__nav-divider {
  flex-shrink: 0;
  align-self: flex-end;   /* anchors to the bottom of the strip, not centered */
  height: calc(var(--header-height) - var(--nav-divider-top-gap));
  display: flex;
  align-items: flex-end;
}

.site-header__nav-divider img {
  height: 100%;
  width: auto;                 /* preserves the 25:720 ratio, no distortion */
  display: block;
}

/* future notifications / account content */
/* ---- adverts stacked in the header strip's empty space ----
   Height is already safely inside the "before the shadow" zone:
   .site-header__strip has padding-bottom: var(--fade-guard), so
   this element's height:100% resolves against that reduced
   content-box automatically — nothing extra needed for point 2. */
/* .site-header__extra is now the two-column ROW; each column
   below is its own vertical stack */
.site-header__extra {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;      /* both columns span the full height */
  justify-content: flex-end; /* hug the right edge — swap if needed */

  /* --- your controls --- */
  padding-top: 0.5rem;       /* space between nav and this whole block */
  padding-bottom: 0.5rem;       /* space between nav and this whole block */
  margin-left: 1.25rem;       /* space between nav and this whole block */
  margin-right: 0.2rem;        /* space between block and viewport edge */
  gap: 1rem;                /* space BETWEEN the two columns */
}

/* ---- column 1: the two stacked ad images ---- */
.site-header__ads {
  flex: 0 1 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;                /* padding between the two ad images */
}

.site-header__ads > div {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
}

.site-header__ads img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
		outline: #FEFEFE;
	outline-style: solid;
	outline-width: 1px;
}

/* ---- column 2: narrower stack of graphic buttons ---- */
.site-header__buttons {
  flex: 0 1 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;                /* padding between buttons */
}

.site-header__buttons > div {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
}

.site-header__buttons img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* THE ACTUAL FIX: <a> is inline by default, which breaks the
   height:100% chain down to the <img> inside it. Making it a
   block (and giving it the height directly) restores that. */
.site-header__ads > div > a,
.site-header__buttons > div > a {
  display: block;
  height: 100%;
  line-height: 0;   /* removes a few px of inline gap under the image */
}

.site-header__ads img,
.site-header__buttons img {
  height: 100%;
  width: auto;

  /* belt-and-braces: even if some ancestor's height fails to
     resolve for any reason, this stops an image from ever
     rendering past a sane cap and overlapping the shadow band */
  max-height: calc(var(--header-height) * 0.42);
  max-width: 100%;

  object-fit: contain;
  display: block;
}

/* ---------------------------------------------------------
   Primary navigation — stacked vertically at every width
--------------------------------------------------------- */
.site-nav {
  flex-shrink: 0;
  margin-left: var(--nav-inset);
  margin-right: var(--nav-divider-gap);   /* ← new line */
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.1rem 0 0.1rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--ink-300);
  white-space: nowrap;
  transition: color 0.18s ease;
}

/* the "current page" indicator — a vertical bar, always on
   for the active link */
.site-nav__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0px;
  bottom: 0px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.18s ease;
}

/* a distinct, lighter bar that only appears on hover — kept
   visually different from the active-page bar so the two
   states are never confused */
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0px;
  bottom: 0px;
  width: 3px;
  border-radius: 2px;
  background: var(--blue-300);
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: center;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--ink-100);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  opacity: 1;
  transform: scaleY(1);
}

.site-nav__link.is-active {
  color: var(--ink-100);
}

.site-nav__link.is-active::before {
  background: var(--blue-500);
  box-shadow: 0 0 8px rgba(19, 135, 243, 0.7);
}

/* the active link keeps its own bar; suppress the hover bar
   on it so the two indicators never stack on one link */
.site-nav__link.is-active::after {
  display: none;
}

/* mobile hamburger toggle — hidden until the collapse breakpoint */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--navy-800);
  border-radius: 6px;
  cursor: pointer;
}

.site-nav__toggle-bar {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--ink-100);
  border-radius: 2px;
}

/* ---------------------------------------------------------
   Intro banner
--------------------------------------------------------- */
.intro_padding {
  padding-top: 0.5rem;
}

.intro_container {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.intro_eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.intro_title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: var(--ink-100);
}

.intro_h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.2;
  color: var(--ink-100);
}
.intro_lede {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-300);
}
.intro_lede a {
  color: var(--blue-300);
  text-decoration: none;
}

.intro_lede a:hover {
  text-decoration: underline;
}
.intro_status-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--blue-600);
  border-radius: 999px;
  background: rgba(19, 135, 243, 0.1);
  color: var(--blue-300);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   Main content placeholder
--------------------------------------------------------- */
.site-main {
  min-height: 40vh;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
	color: #ffffff;
}

/* ---------------------------------------------------------
   Responsive
   Shrink --header-height at each step (banner + strip stay
   in lockstep automatically), then collapse the nav list
   into a toggled dropdown once space gets tight.
--------------------------------------------------------- */

/* wider screens shrinking down: drop the (larger) ad column
   first, keep the narrower buttons column as long as possible */
@media (max-width: 1200px) {
  .site-header__ads { display: none; }
}

@media (max-width: 900px) {
  :root { --header-height: 150px; }
  .site-header__extra,
  .site-header__nav-divider { display: none; }   /* both hide together */
}

@media (max-width: 700px) {
  :root { --header-height: 96px; --nav-inset: 1.25rem; }
  /* nav list becomes a toggled dropdown below, so the strip
     itself no longer needs room for all the stacked links */

  .site-nav__toggle { display: flex; }

  .site-nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-top: 1px solid var(--navy-800);
    padding: 0.75rem 1.5rem 1rem;
    gap: 0;
    z-index: 10;
  }

  .site-nav__list.is-open { display: flex; }

  .site-nav__link { padding: 0.75rem 0 0.75rem 1rem; }
}

@media (max-width: 460px) {
  :root { --header-height: 74px; --nav-inset: 0.85rem; }
  .site-nav__toggle { width: 36px; height: 36px; }
}
/* ===========================================================
   SITE FOOTER
   Full-width navy strip mirroring the header's construction —
   it sits OUTSIDE .container (as a sibling after </main>, not
   nested inside it) so it can span edge to edge the same way
   the header does, with its own inner max-width row to align
   its two columns with the content above.
=========================================================== */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-800);
  margin-top: 3rem;
}
 
.site-footer__row {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.75rem;
}
 
/* ---- left column: logo, title, dynamic copyright ---- */
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
 
.site-footer__logo {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
 
.site-footer__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-100);
}
 
.site-footer__copyright {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-300);
}
 
/* ---- right column: link list ---- */
.site-footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
 
.site-footer__links a {
  color: var(--ink-300);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.16s ease;
}
 
.site-footer__links a:hover {
  color: var(--blue-300);
  text-decoration: underline;
}
 
@media (max-width: 700px) {
  .site-footer__row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.5rem;
  }
 
  .site-footer__links ul {
    flex-direction: column;
    gap: 0.6rem;
  }
}
/* ===========================================================
   HELP WIDGET
   Tab-shaped launcher, off-centre on the right edge, slides a
   panel in from the same edge. The launcher is a child of the
   panel and rides along on the same transform/transition, so
   there's only one thing to animate — when the panel is
   translated fully off-canvas, the launcher (which sticks out
   past the panel's own left edge) is the only part left
   visible on screen.
=========================================================== */

/* NOTE: a second :root block — perfectly valid CSS, custom
   properties from both are merged. Kept separate on purpose so
   the help-widget's variables live next to the rules that use
   them instead of buried at the top of the file. */
:root {
  --help-panel-width: min(400px, 92vw);
  --help-tab-w: 56px;
  --help-tab-h: 128px;
  --help-tab-top: 62%;      /* off-centre vertical position */
}

.help-widget__backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(1, 12, 29, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.help-widget__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.help-widget__panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: var(--help-panel-width);
  /* deliberately NOT clipped — the launcher tab lives outside
     this box (to the left of it) and has to stay visible even
     when the panel itself is slid off-canvas */
  overflow: visible;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 901;
}

.help-widget__panel.is-open {
  transform: translateX(0);
}

/* ---- the tab / launcher button ---- */
.help-widget__launcher {
  position: absolute;
  top: var(--help-tab-top);
  left: calc(var(--help-tab-w) * -1);
  transform: translateY(-50%);
  width: var(--help-tab-w);
  height: var(--help-tab-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(160deg, var(--blue-600), var(--blue-800));
  border: 1px solid var(--navy-800);
  border-right: none;
  border-radius: 14px 0 0 14px;
  box-shadow: -6px 0 18px rgba(1, 12, 29, 0.35), inset 0 0 0 1px rgba(19, 135, 243, 0.18);
  color: var(--ink-100);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.help-widget__launcher:hover,
.help-widget__launcher:focus-visible {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: -10px 0 22px rgba(1, 12, 29, 0.4), inset 0 0 0 1px rgba(19, 135, 243, 0.3);
}

.help-widget__launcher-icon {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
}

.help-widget__launcher-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---- the panel body ---- */
.help-widget__panel-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--navy-900);
  border-left: 1px solid var(--navy-800);
  box-shadow: -18px 0 40px rgba(1, 12, 29, 0.35);
  /* the inner box is fine to clip — nothing needs to escape
     it, only the launcher (a sibling, not a child) does */
  overflow-y: auto;
}

.help-widget__panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--navy-800);
}

.help-widget__panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-100);
}

.help-widget__close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--navy-800);
  border-radius: 8px;
  color: var(--ink-300);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.help-widget__close:hover,
.help-widget__close:focus-visible {
  color: var(--blue-300);
  border-color: var(--blue-600);
}

.help-widget__panel-body {
  padding: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-300);
}

.help-widget__panel-body h3 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.help-widget__panel-body h3:first-child {
  margin-top: 0;
}

.help-widget__panel-body p {
  margin: 0 0 0.85rem;
}

.help-widget__panel-body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
}

.help-widget__panel-body li {
  margin-bottom: 0.35rem;
}

/* ---------------------------------------------------------
   Help widget — small screens
--------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --help-panel-width: 100vw;
    --help-tab-w: 46px;
    --help-tab-h: 104px;
  }

  .help-widget__launcher-label { font-size: 0.6rem; }
}

/* ===========================================================
   NEW REUSABLE COMPONENTS
   Used across: Help & Support, My Cloud Account, Share My
   Profiles. Built entirely on the existing :root tokens already
   defined earlier in this file (--navy-*, --blue-*, --red-500,
   --ink-*, --font-display, --font-body) — no new colours added.

   Sections in this file:
     1. Two-column page layouts
     2. Info card (generic content box)
     3. Form kit (fields, rows, buttons, checkboxes, pills)
     4. File drop zone
     5. Step-guide (boxes + arrow connector)
     6. FAQ accordion
     7. Benefits list
=========================================================== */

/* -----------------------------------------------------------
   1. Two-column page layouts
----------------------------------------------------------- */
.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
}

/* even split — used on My Cloud Account (auth card | benefits card) */
.two-col-layout--balanced {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .two-col-layout,
  .two-col-layout--balanced {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------
   2. Info card — generic content box used for the contact
   form, auth box, benefits box, and the share-profile form
----------------------------------------------------------- */
.info-card {
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  border-radius: 12px;
  padding: 1.75rem;
}

.info-card--sticky {
  position: sticky;
  top: 1.5rem;
}

.info-card__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-300);
}

@media (max-width: 700px) {
  .info-card { padding: 1.25rem; }
}

/* -----------------------------------------------------------
   3. Form kit — shared across the contact form, sign-in /
   create-account forms, and the share-profile form
----------------------------------------------------------- */
.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.form-fieldset legend {
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field:last-child { margin-bottom: 0; }

.form-field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-100);
}

.form-field__control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--navy-950);
  border: 1px solid var(--navy-800);
  border-radius: 7px;
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.16s ease;
}

.form-field__control:focus {
  outline: none;
  border-color: var(--blue-500);
}

textarea.form-field__control {
  resize: vertical;
  min-height: 90px;
}

.form-field__hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-300);
  opacity: 0.85;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

/* three-field variant — used for Profile Format / Version / Credit
   name on Share My Profiles. Format sizes to its own widest option
   (native <select> default behaviour once width:100% is overridden
   below), Version stays narrow and fixed, Credit name absorbs
   whatever space is left. */
.form-row--profile-meta {
  display: flex;
  gap: 0 1.5rem;
}

.form-row--profile-meta .form-field--format {
  flex: 0 0 auto;
}

.form-row--profile-meta .form-field--format .form-field__control {
  width: auto;
  min-width: 140px;
}

.form-row--profile-meta .form-field--narrow {
  flex: 0 0 90px;
}

.form-row--profile-meta .form-field--grow {
  flex: 1 1 160px;
  min-width: 0;
}

@media (max-width: 560px) {
  .form-row--profile-meta {
    flex-direction: column;
  }
  .form-row--profile-meta .form-field--format,
  .form-row--profile-meta .form-field--narrow,
  .form-row--profile-meta .form-field--grow {
    flex: 1 1 auto;
  }
  .form-row--profile-meta .form-field--format .form-field__control {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-300);
  cursor: pointer;
}

.form-checkbox input {
  accent-color: var(--blue-500);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-300);
  text-decoration: none;
}

.form-link:hover { text-decoration: underline; }

.form-hint {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-300);
  opacity: 0.8;
}

/* buttons */
.site-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.site-btn--primary {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-800));
  border: 1px solid var(--blue-500);
  color: #fff;
}

.site-btn--primary:hover { filter: brightness(1.12); transform: translateY(-1px); }

.site-btn--ghost {
  background: transparent;
  border: 1px solid var(--navy-800);
  color: var(--ink-300);
}

.site-btn--ghost:hover { color: var(--ink-100); border-color: var(--blue-600); }

/* pill toggle — used for Sign In / Create Account and
   Device Profile / Aircraft Profile */
.pill-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.5rem 1rem;
  background: var(--navy-950);
  border: 1px solid var(--navy-800);
  border-radius: 999px;
  color: var(--ink-300);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.pill:hover { color: var(--ink-100); }

.pill.is-active {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-800));
  border-color: var(--blue-500);
  color: #fff;
}

/* -----------------------------------------------------------
   4. File drop zone — used on Share My Profiles
----------------------------------------------------------- */
.file-drop {
  position: relative;
}

.file-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--navy-800);
  border-radius: 10px;
  background: var(--navy-950);
  text-align: center;
  transition: border-color 0.16s ease;
}

.file-drop__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-100);
}

.file-drop__hint {
  font-size: 0.74rem;
  color: var(--ink-300);
}

.file-drop__filename {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-300);
}

.file-drop:hover .file-drop__label,
.file-drop__input:focus-visible ~ .file-drop__label {
  border-color: var(--blue-500);
}

/* -----------------------------------------------------------
   5. Step-guide — a heading plus a row of boxes connected by
   an arrow graphic. Duplicate a whole .step-guide block for
   each function of the site; duplicate a .step-box + its
   following .step-arrow for each extra step. The arrow is a
   plain inline SVG with no gradient/IDs, so it's safe to
   copy-paste as many times as needed without collisions.
----------------------------------------------------------- */
.step-guide {
  margin-bottom: 2.25rem;
  background: var(--blue-800);
  border: 1px solid var(--navy-800);
  border-radius: 20px;
  padding: 1.1rem 1.25rem;
}

.step-guide__heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-100);
}

.step-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}

.step-box {
  flex: 1 1 200px;
  background: var(--navy-950);
  border: 1px solid var(--navy-800);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.step-box__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-800));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
}

.step-box__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-100);
}

.step-box__body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-300);
}

.step-arrow {
  flex: 0 0 auto;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-arrow svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 700px) {
  .step-row { flex-direction: column; }
  .step-arrow { width: 100%; padding: 0.25rem 0; }
  .step-arrow svg { transform: rotate(90deg); }
}

/* -----------------------------------------------------------
   6. FAQ accordion — built on native <details>/<summary>, so
   it needs no JS at all and stays keyboard/screen-reader
   friendly by default.
----------------------------------------------------------- */
.faq-list {
  border-top: 1px solid var(--navy-800);
}

.faq-item {
  border-bottom: 1px solid var(--navy-800);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-100);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--navy-800);
  color: var(--blue-300);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.faq-item:hover summary::after { border-color: var(--blue-500); }

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item__answer {
  margin: 0;
  padding: 0 0.25rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-300);
}

/* -----------------------------------------------------------
   7. Benefits list — simple checkmark list used on
   My Cloud Account
----------------------------------------------------------- */
.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-300);
}

.benefits-list li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--blue-300);
  font-weight: 700;
}
