/*
 * ConfigOne: what the pages of this deployment take from the brand.
 * Source: configone-brand (aveneo.incubator/ConfigOne), the Apple-style
 * direction: system type (SF on Apple devices), a text wordmark.
 *
 * Colours, radii and shadows: theme.json.
 */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display',
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* The wordmark: logo.svg's viewBox, width over height. Drawn in the
   * text colour of wherever it sits, dark on light pages, white on the
   * dark bars. */
  --brand-logo-ratio: 170 / 42;
  --brand-logo-paint: currentColor;
  --brand-logo-mask: url('/brand/logo.svg') center / contain no-repeat;
}

/*
 * The configurator's ConfigOne touches, from the redesign branch's
 * configone theme (configurator.css), as far as they suit the light
 * parameter card the shared code draws. The redesign's dark card, the
 * dark stage behind the 3D view and its dark steppers stay out: those
 * are a different layout, which a brand would get by replacing the
 * component, not by styling it.
 *
 * `:root` in front of each class: this file loads before the app's own
 * styles, so the rule must be the more specific one.
 */

:root {
  /* The landing page's gradients (configone-website, globals.css). */
  --accgrad: linear-gradient(90deg, #0090f7 0%, #5c6cff 45%, #b736ff 80%, #f64f9d 100%);
  --gradnum: linear-gradient(90deg, #0090f7, #b736ff);
}

:root ::selection {
  background: rgba(0, 113, 227, 0.2);
}

/* Apple's body tracking, and its focus ring. */
:root .ledp-cfg {
  letter-spacing: -0.022em;
}
:root .ledp-cfg :focus-visible {
  outline: 2px solid var(--ledp-lime);
  outline-offset: 2px;
}

/* The accent cap over the parameters: the landing's gradient, a touch wider. */
:root .ledp-cfg__deck::before {
  width: 72px;
  background: var(--accgrad);
}

/* Group titles: Apple's quiet uppercase grey. */
:root .ledp-cfg__group-title,
:root .ledp-cfg-field__section {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 600;
}

:root .ledp-cfg__spec-name {
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* A switched-on option: the iOS green, not the accent. */
:root .ledp-cfg-bool--on {
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.55);
}
:root .ledp-cfg-bool--on .ledp-cfg-bool__state {
  background: #30d158;
  color: #0b3d18;
}

/* The total: in the system face, in the landing's blue to violet. The
 * currency and the net tag keep their quiet grey. */
:root .ledp-cfg__price-hero-value,
:root .ledp-cfg__price-bar-value {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--gradnum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
:root .ledp-cfg__price-hero-value-currency,
:root .ledp-cfg__price-bar-value-tag {
  -webkit-text-fill-color: var(--fg-secondary);
  color: var(--fg-secondary);
}

/* Cart and order buttons: pills, sentence case in the system face. */
:root .a2c-btn {
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}
:root .a2c-btn--cta .a2c-btn__caret,
:root .a2c-btn--cta:not(:disabled):hover .a2c-btn__caret {
  color: var(--ledp-lime-contrast);
}
