/*
 * The landing page served at "/" (src/landing/index.html). Plain CSS: the page has no build step
 * beyond being copied, and no Fluent UI.
 *
 * Colours: src/theme/theme.ts is the source (voltaBrand, the ink and the page tint), plus the greys
 * and tints of the Volta website illustration style. They are declared once here; nothing below this
 * block writes a hex value.
 */
:root {
  --ink: #031320; /* theme.ts neutralPrimary */
  --body: #3c4650;
  --muted: #7a8089;
  --hairline: #ececf2;
  --surface: #ffffff;
  --page-tint: #f5f5fb; /* theme.ts page background */
  --violet: #6449db; /* voltaBrand[80], the brand key colour */
  --violet-text: #5a43c9;
  --violet-tint-strong: #e4e0f8;
  --violet-deep: #2a1e5e; /* button press */

  /* The task pane inside the scenes (scenes.css) mirrors the real one: theme.ts plus the Fluent v9
     light neutrals. Keep these in step with theme.ts when the pane's look changes. */
  --p-ground: #f4f2fd; /* colorBrandBackground2 */
  --p-stroke: #e0e0e0;
  --p-stroke-strong: #d1d1d1;
  --p-strip: #fafafa;
  --p-hover: #f0f0f0;
  --p-track: #e6e6e6;
  --p-fg1: #242424;
  --p-fg2: #424242;
  --p-fg3: #616161;
  --p-fg4: #707070;
  --p-brand: #6449db; /* voltaBrand[80] */
  --p-brand-fg: #5531d8; /* voltaBrand[70] */
  --p-brand-press: #4826c5; /* voltaBrand[60] */
  --p-disabled-bg: #f0f0f0;
  --p-disabled-fg: #bdbdbd;
  --p-success: #107c10;
  --p-success-bg: #f1faf1;
  --p-success-border: #9fd89f;
  --p-success-fg: #0e700e;
  /* Pills: counterpartyKindColors, unitPillColors, taskStatusColors, orderStatusColors. */
  --p-customer-bg: #eeebfa;
  --p-customer-fg: #5939ce;
  --p-customer-border: #c1b5ed;
  --p-neutral-bg: #f5f5fb;
  --p-neutral-fg: #232529;
  --p-neutral-border: rgba(0, 23, 146, 0.1);
  --p-amber-bg: #fff2d0;
  --p-amber-fg: #765700;
  --p-amber-border: #ffeab0;
  --p-green-bg: #ade9d1;
  --p-green-fg: #006f43;
  --p-green-border: #77dbb3;
  --p-draft-bg: #e2e2e2;
  --p-draft-fg: #1c2b36;
  --p-count-bg: #ececec;
  /* classificationDotColors and the thread-status dots. */
  --p-dot-order: #3d2a9e;
  --p-dot-rfq: #00506f;
  --p-dot-fulfillment: #7a4506;
  --p-dot-new: #1e40af;
  --p-dot-open: #854d0e;
  /* Two entries of avatarPalette, for the teammates' initials. */
  --p-avatar-marco: #4f38b0;
  --p-avatar-anne: #005f73;
  --p-shadow-pop: 0 8px 16px rgba(0, 0, 0, 0.14), 0 0 2px rgba(0, 0, 0, 0.12);

  --font: "Inter", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --radius-card: 16px;
  --radius-button: 9px;
  --shadow-card: 0 1px 2px rgba(3, 19, 32, 0.05), 0 14px 32px -18px rgba(36, 18, 79, 0.22);
  /* The website illustration style's product window: small, mostly below, violet-tinted. */
  --shadow-window: 0 1px 2px rgba(3, 19, 32, 0.05), 0 18px 40px -20px rgba(36, 18, 79, 0.28);
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}

/* ---- Base ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}

p {
  margin: 0;
}

a {
  color: var(--violet-text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-button);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* Monospace caps section label, violet on light. */
.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  background: var(--violet-deep);
}

.button:active {
  background: var(--violet-deep);
  transform: scale(0.98);
}

.button--secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.button--secondary:hover {
  background: var(--violet-tint-strong);
}

.button--secondary:active {
  background: var(--violet-tint-strong);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ---- Header ---- */

.topbar {
  border-bottom: 1px solid var(--hairline);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.topbar__logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.topbar__logo img {
  width: 7.5rem;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__site {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__site:hover {
  color: var(--violet);
}

.lang-switch {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.1875rem;
  background: var(--page-tint);
  border-radius: var(--radius-button);
}

.lang-switch[hidden] {
  display: none;
}

.lang-switch button {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  min-width: 2.25rem;
  min-height: 1.875rem;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--violet-text);
  box-shadow: var(--shadow-card);
}

@media (max-width: 30rem) {
  .topbar__site {
    display: none;
  }
}

/* ---- Hero ---- */

/* White, so the lavender frames of the carousel scenes stand out (scenes.css). */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__text h1 {
  margin-bottom: 1.25rem;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--body);
  margin-bottom: 2rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- Install ---- */

.install {
  background: var(--page-tint);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  scroll-margin-top: 1rem;
}

.install h2 {
  margin-bottom: 0.75rem;
}

.install__lead {
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

.install__grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.install__card {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.install__card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.install__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.install__steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.875rem;
}

.install__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--violet-tint-strong);
  color: var(--violet-text);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
}

.install__step-title {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.install__steps p {
  font-size: 0.9375rem;
}

/* The manifest URL to paste in the admin center, with a Copy button when the browser allows it. */
.manifest {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.375rem 0.375rem 0.375rem 0.75rem;
  border-radius: var(--radius-button);
  background: var(--page-tint);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.manifest__url {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
}

.manifest__copy {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: var(--surface);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.manifest__copy:hover {
  background: var(--violet-deep);
}

.manifest__copy[hidden],
.manifest__copy [hidden] {
  display: none;
}

.install__note {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-button);
  background: var(--page-tint);
  font-size: 0.875rem;
}

.install__help {
  margin-top: 2rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.9375rem;
}

/* ---- Footer ---- */

.footer {
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---- Two columns from 960px ---- */

@media (min-width: 60rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .install__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Only the carousel moves, and scenes.js plays nothing with reduced motion; this keeps the rest still. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .button:active {
    transform: none;
  }
}
