/* DispHub website. Fluent 2 (Windows 11) tokens and controls on the brand's navy, blue and orange. */

:root {
  color-scheme: dark;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-small: "Segoe UI Variable Small", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --bg: #070a12;
  --text-1: #ffffff;
  --text-2: rgba(255, 255, 255, 0.786);
  --text-3: rgba(255, 255, 255, 0.544);

  /* layers, strokes and control fills, as in WinUI's dark theme */
  --card: rgba(255, 255, 255, 0.0512);
  --card-2: rgba(255, 255, 255, 0.0326);
  --stroke: rgba(255, 255, 255, 0.0698);
  --stroke-2: rgba(255, 255, 255, 0.1);
  --stroke-ctl: rgba(255, 255, 255, 0.0698);
  --stroke-ctl-top: rgba(255, 255, 255, 0.093);
  --divider: rgba(255, 255, 255, 0.0837);
  --ctl: rgba(255, 255, 255, 0.0605);
  --ctl-hover: rgba(255, 255, 255, 0.0837);
  --ctl-press: rgba(255, 255, 255, 0.0326);

  /* accent: the brand blue, light enough for dark text, as Windows 11 draws accent buttons in dark mode */
  --accent: #5cbcff;
  --accent-hover: #53aeee;
  --accent-press: #4a9fdc;
  --accent-text: #8ccfff;
  --on-accent: #001a2e;
  --brand: linear-gradient(90deg, #148cf5 0%, #1ed2e6 30%, #8cdc50 55%, #f5c82d 78%, #fa781e 100%);

  --r-ctl: 4px;
  --r-card: 8px;
  --shadow-flyout: 0 8px 16px rgba(0, 0, 0, 0.32);
  /* screenshots: a dark grey edge and a soft shadow under them, as FluentFlyout's site shows its own */
  --image-border: 1px solid #1e2939;
  --shadow-image: 0 20px 25px -5px rgba(2, 6, 24, 0.3), 0 8px 10px -6px rgba(2, 6, 24, 0.3);

  /* Fluent motion */
  --ease: cubic-bezier(0, 0, 0, 1);
  --ease-std: cubic-bezier(0.33, 0, 0.67, 1);
  --fast: 167ms;
  --normal: 250ms;
  --slow: 333ms;

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  --page: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 16px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Mica: deep navy with the brand's blue and orange light, like the Store art */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vmax 50vmax at 8% -6%, rgba(23, 88, 220, 0.42), transparent 62%),
    radial-gradient(48vmax 40vmax at 100% 108%, rgba(232, 112, 40, 0.30), transparent 60%),
    linear-gradient(180deg, #0a1022 0%, #070a12 60%, #0a0a10 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: 0.5;
  pointer-events: none;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: var(--r-ctl);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-ctl);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

.gradient-text {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.14;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font: 600 14px/20px var(--font-text);
  color: var(--accent-text);
}

/* ---------- buttons ---------- */

.btn {
  --h: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 16px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--stroke-ctl);
  border-top-color: var(--stroke-ctl-top);
  background: var(--ctl);
  color: var(--text-1);
  font: 400 14px/20px var(--font-text);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--fast) var(--ease-std), color var(--fast) var(--ease-std);
}

.btn:hover {
  background: var(--ctl-hover);
  text-decoration: none;
}

.btn:active {
  background: var(--ctl-press);
  color: var(--text-2);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  border-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.16);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-accent:active {
  background: var(--accent-press);
  color: rgba(0, 26, 46, 0.75);
}

/* a call to action with a second line, as the Store and FluentFlyout do it */
.btn-two {
  --h: 56px;
  min-width: 206px;
  justify-content: flex-start;
  gap: 14px;
  padding: 0 20px 0 18px;
  border-radius: 6px;
}

.btn-two > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
}

.btn-two small {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  opacity: 0.78;
}

.btn-subtle {
  background: transparent;
  border-color: transparent;
}

.btn-subtle:hover {
  background: var(--ctl-hover);
}

.btn-icon {
  width: 36px;
  padding: 0;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background var(--normal) var(--ease-std), border-color var(--normal) var(--ease-std);
}

.header.scrolled {
  background: rgba(12, 16, 28, 0.66);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border-bottom-color: var(--stroke);
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--text-1);
  font: 600 17px/1 var(--font-display);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-ctl);
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
  transition: background var(--fast) var(--ease-std), color var(--fast) var(--ease-std);
}

.nav a:hover {
  background: var(--ctl);
  color: var(--text-1);
  text-decoration: none;
}

/* WinUI's top navigation marks the current page with a short accent pill */
.nav a[aria-current="page"] {
  color: var(--text-1);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--accent);
}

.nav .nav-gh {
  display: none;
}

.bar-end {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.menu-btn {
  display: none;
}

@media (max-width: 720px) {
  .bar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    position: absolute;
    top: 56px;
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    width: 220px;
    padding: 4px;
    border-radius: var(--r-card);
    border: 1px solid var(--stroke-2);
    background: rgba(30, 34, 48, 0.9);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);
    box-shadow: var(--shadow-flyout);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--fast) var(--ease-std), transform var(--normal) var(--ease), visibility 0s linear var(--normal);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--fast) var(--ease-std), transform var(--normal) var(--ease);
  }

  .nav a {
    padding: 10px 12px;
  }

  .nav .nav-gh {
    display: block;
  }

  .nav a[aria-current="page"]::after {
    left: 2px;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 16px;
    margin: -8px 0 0;
  }

  .gh {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(80px, 10vw, 140px);
  text-align: center;
}

.hero .display {
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero .lead {
  margin: 20px 0 0;
  font: 600 clamp(20px, 2.2vw, 26px)/1.3 var(--font-display);
  color: var(--text-1);
}

.hero .sub {
  margin: 8px 0 0;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-3);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* on-screen message: just the profile's name, as the app shows it */
.osd {
  position: absolute;
  left: 50%;
  bottom: 16%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 16px;
  border-radius: var(--r-card);
  background: rgba(30, 34, 46, 0.7);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-flyout);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity var(--normal) var(--ease-std), transform var(--slow) var(--ease);
  pointer-events: none;
}

.osd.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.osd svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent-text);
}

.osd b {
  font: 600 16px/22px var(--font-text);
  white-space: nowrap;
}

/* ---------- features ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(96px, 12vw, 160px);
}

.feature.flip {
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.62fr);
}

.feature.flip .feature-copy {
  order: 2;
}

.feature-copy p {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 24em;
}

/* the app's windows: one corner radius, as Windows 11 draws them */
.win {
  width: 100%;
  border-radius: var(--r-card);
  border: var(--image-border);
  box-shadow: var(--shadow-image);
}

.mini {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  overflow: hidden;
  border: var(--image-border);
  box-shadow: var(--shadow-image);
}

.mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini .osd {
  bottom: 12%;
}

@media (max-width: 860px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }

  .feature.flip .feature-copy {
    order: 0;
  }
}

/* ---------- closing call to action ---------- */

.closing {
  text-align: center;
}

.closing .mark {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 30px rgba(20, 140, 245, 0.35));
}

.closing p {
  max-width: 30em;
  margin: 14px auto 0;
  font-size: 18px;
  color: var(--text-2);
}

/* ---------- FAQ ---------- */

.faq {
  padding-top: 0;
}

.faq h2 {
  text-align: center;
  margin-bottom: 28px;
}

.expanders {
  display: grid;
  gap: 4px;
  max-width: 760px;
  margin-inline: auto;
}

details.expander {
  border-radius: var(--r-card);
  border: 1px solid var(--stroke);
  background: var(--card);
}

details.expander > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 12px 10px 20px;
  border-radius: var(--r-card);
  list-style: none;
  cursor: pointer;
  font: 600 15px/22px var(--font-text);
}

details.expander > summary::-webkit-details-marker {
  display: none;
}

details.expander > summary:hover {
  background: var(--card-2);
}

details.expander > summary .chev {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  flex: none;
  border-radius: var(--r-ctl);
  color: var(--text-2);
}

details.expander > summary:hover .chev {
  background: var(--ctl-hover);
}

details.expander > summary .chev svg {
  width: 12px;
  height: 12px;
  transition: transform var(--normal) var(--ease);
}

details.expander[open] > summary {
  border-bottom: 1px solid var(--divider);
  border-radius: var(--r-card) var(--r-card) 0 0;
}

details.expander[open] > summary .chev svg {
  transform: rotate(180deg);
}

details.expander .body {
  padding: 14px 20px 18px;
  color: var(--text-2);
  font-size: 15px;
}

details.expander[open] .body {
  animation: expand var(--normal) var(--ease);
}

@keyframes expand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- download page ---------- */

.page-head {
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px);
  text-align: center;
}

.page-head h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
}

.page-head p {
  margin: 14px auto 0;
  font-size: 18px;
  color: var(--text-2);
}

.dl {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: 0 auto;
}

.dl-main {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--stroke-2);
  background: var(--card);
}

.dl-main img.app {
  width: 64px;
  height: 64px;
}

.dl-main h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 28px;
}

.dl-main p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

.dl-main .meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 11.5px/1 var(--font-small);
}

.store-badge {
  display: inline-flex;
  border-radius: 6px;
}

.store-badge img {
  width: auto;
  height: 52px;
}

/* in a row of calls to action the badge takes their height */
.cta .store-badge img {
  height: 56px;
}

.option + .option {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
}

.option b {
  color: var(--text-1);
}

.option p {
  margin: 4px 0 0;
}

pre.code {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-1);
  font: 400 13px/1.6 "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, monospace;
  overflow-x: auto;
}

@media (max-width: 680px) {
  .dl-main {
    grid-template-columns: 52px 1fr;
  }

  .dl-main img.app {
    width: 52px;
    height: 52px;
  }

  .dl-main .store-badge {
    grid-column: 1 / -1;
  }
}

/* ---------- privacy page ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}

.prose h2 {
  margin: 32px 0 8px;
  font-size: 20px;
  line-height: 28px;
  color: var(--text-1);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 12px;
}

.prose code {
  padding: 1px 5px;
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-1);
  font: 400 14px "Cascadia Code", Consolas, ui-monospace, monospace;
}

/* ---------- footer ---------- */

.footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 28px 0 32px;
  border-top: 1px solid var(--stroke);
  font-size: 14px;
  color: var(--text-3);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.foot .brand {
  font-size: 15px;
}

.foot .brand img {
  width: 24px;
  height: 24px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.foot-links a {
  color: var(--text-2);
}

.legal {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 12.5px;
}

.legal a {
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- copied toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-card);
  background: rgba(36, 40, 54, 0.86);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--stroke-2);
  box-shadow: var(--shadow-flyout);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity var(--normal) var(--ease-std), transform var(--slow) var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast code {
  font: 400 13px "Cascadia Code", Consolas, ui-monospace, monospace;
  color: var(--accent-text);
}

/* ---------- entrance motion ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease-std), transform 700ms var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
