/*
 * quwire.app: one style sheet for every page. Light appearance only, like the app.
 * Colors, radii and shadows are Quwire's design tokens (QuwireKit/Sources/DesignSystem/Tokens); the layout follows
 * the design's landing hero (2b). Avenir Next draws heavier than the design's stand-in font, so each design weight
 * takes the face one step lighter (P2-43): 900 is Heavy (CSS 800), 800 is Bold (700), 700 is Demi Bold (600).
 */

:root {
  color-scheme: light;

  --ink: #000000;
  --body: #1f1f1f;
  --secondary: #565656;
  --slate: #333f48;
  --slate-hover: #11181d;
  --slate-pressed: #0a0e11;
  --grey-400: #aeaeae;
  --grey-300: #cdcdcd;
  --grey-200: #e8e8e8;
  --grey-100: #f2f2f2;
  --grey-50: #f8f8f8;
  --white: #ffffff;
  --card-fill: rgba(255, 255, 255, 0.72);
  --inner-highlight: inset 0 0 0 1px rgba(255, 255, 255, 0.95);
  --divider: rgba(0, 0, 0, 0.06);

  --shadow-hairline: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-tile: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);

  --radius-window: 26px;
  --radius-tile: 20px;
  --radius-card: 18px;

  --weight-900: 800;
  --weight-800: 700;
  --weight-700: 600;
  --weight-400: 400;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --gutter: clamp(20px, 6.67vw, 96px);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* A column as tall as the window, so a short page (404) keeps its footer at the bottom. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--grey-50);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  font-weight: var(--weight-400);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

a {
  color: var(--slate);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--slate-hover);
}

strong {
  color: var(--ink);
  font-weight: var(--weight-700);
}

::selection {
  background: var(--slate);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
}

.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;
  top: -60px;
  left: 16px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: var(--weight-700);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

main {
  flex: 1 0 auto;
}

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

/* Header (2b: 88 px tall, the brand at 26/900, links at 14/700 in slate, 36 px apart). */

.site-header {
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}

.brand {
  color: var(--ink);
  font-size: 26px;
  font-weight: var(--weight-900);
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

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

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

.nav-link {
  color: var(--slate);
  font-size: 14px;
  font-weight: var(--weight-700);
  text-decoration: none;
}

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

@media (max-width: 760px) {
  .nav-link {
    display: none;
  }
}

/* Buttons (sm 12 with 8×14, md 14 with 11×20, lg 16 with 14×26; weight 700; a 1.5 px border; pill shaped). */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-weight: var(--weight-700);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 120ms var(--ease),
    border-color 120ms var(--ease),
    color 120ms var(--ease);
}

.button-sm {
  padding: 8px 14px;
  font-size: 12px;
}

.button-lg {
  padding: 14px 26px;
  font-size: 16px;
}

.button-solid,
.button-solid:hover,
.button-ink,
.button-ink:hover {
  color: var(--white);
}

.button-solid {
  border-color: var(--slate);
  background: var(--slate);
}

.button-solid:hover {
  border-color: var(--slate-hover);
  background: var(--slate-hover);
}

.button-ink {
  border-color: var(--ink);
  background: var(--ink);
}

.button-ink:hover {
  border-color: var(--body);
  background: var(--body);
}

.button-solid:active,
.button-ink:active {
  border-color: var(--slate-pressed);
  background: var(--slate-pressed);
}

.button-ghost,
.button-ghost:hover {
  color: var(--body);
}

.button-ghost:hover {
  background: var(--grey-100);
}

.button-ghost:active {
  background: var(--grey-200);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* Shared type. */

.eyebrow {
  color: var(--secondary);
  font-size: 11px;
  font-weight: var(--weight-700);
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-title {
  color: var(--ink);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: var(--weight-900);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.section-lede {
  max-width: 600px;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.keycap {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--white);
  box-shadow:
    inset 0 0 0 1px var(--grey-200),
    0 2px 0 var(--grey-300);
  color: var(--slate);
  font-size: 16px;
  font-weight: var(--weight-800);
  line-height: 1;
}

.keycap-sm {
  min-width: 22px;
  height: 22px;
  margin: 0 1px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  vertical-align: 1px;
}

/* Hero (2b): the copy on the left, the menu bar window over a slate and a black circle on the right. */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  --circle-large: clamp(1000px, calc(141.67vw - 440px), 1600px);
  --circle-small: clamp(400px, calc(66.67vw - 240px), 720px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  align-items: start;
  min-height: 812px;
}

.hero-inner::before,
.hero-inner::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-inner::before {
  right: calc(var(--circle-large) / -2);
  bottom: calc(var(--circle-large) / -2);
  width: var(--circle-large);
  height: var(--circle-large);
  background: var(--slate);
}

.hero-inner::after {
  right: calc(var(--circle-small) / -2);
  bottom: calc(var(--circle-small) / -2);
  width: var(--circle-small);
  height: var(--circle-small);
  background: var(--ink);
}

.hero-copy,
.hero-figure {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 92px 0 96px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  /* The icon's canvas has the macOS icon grid's margin: line its squircle up with the text. */
  margin-left: -9.4px;
}

.hero-title {
  color: var(--ink);
  font-size: clamp(64px, 11vw, 100px);
  font-weight: var(--weight-900);
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.hero-pitch {
  max-width: 560px;
  color: var(--slate);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: var(--weight-800);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.hero-lede {
  max-width: 520px;
  color: var(--secondary);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.4;
}

.hero-figure {
  justify-self: end;
  width: 336px;
  margin: 62px clamp(0px, 3.75vw, 54px) 0 0;
}

.hero-figure img {
  width: 100%;
  /* The render's own corners: 26 pt on a 336 × 652 pt window, kept round at any width. */
  border-radius: 7.738% / 3.988%;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1199px) {
  .hero-inner {
    --circle-large: calc(100vw + 420px);
    --circle-small: calc(30vw + 260px);
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-copy {
    padding: 56px 0 0;
  }

  .hero-figure {
    justify-self: center;
    width: min(336px, 100%);
    margin: 56px 0 72px;
  }
}

/* Sections. */

.section {
  padding: clamp(72px, 9vw, 128px) 0 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* Snapshots draw the window's glass as a solid grey, so the Stage render sits on a white card, like a window. */
.stage-figure {
  --stage-pad: clamp(8px, 1.6vw, 16px);
  max-width: calc(1000px + 2 * var(--stage-pad));
  padding: var(--stage-pad);
  /* Concentric with the render's own corners: 26 pt on a 1000 pt window, at whatever width it is shown. */
  border-radius: calc(var(--stage-pad) + 0.026 * min(1000px, 100vw - 2 * var(--gutter) - 2 * var(--stage-pad)));
  background: var(--white);
  box-shadow: var(--shadow-tile);
}

.stage-figure img {
  width: 100%;
  border-radius: 2.6% / 3.939%;
}

.features,
.steps {
  display: grid;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.features {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.feature {
  padding: 24px;
  border-radius: var(--radius-tile);
  background: var(--card-fill);
  box-shadow: var(--inner-highlight), var(--shadow-tile);
}

.well {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--white);
}

.well svg {
  width: 22px;
  height: 22px;
}

.feature h3,
.step h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: var(--weight-800);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.feature p,
.step p {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.55;
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px 40px;
}

.step .keycap {
  margin-bottom: 18px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-window);
  background: var(--card-fill);
  box-shadow: var(--inner-highlight), var(--shadow-tile);
}

.cta-card .button {
  margin-top: 8px;
}

.requirements {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.4;
}

/* Privacy, Support and 404. */

.doc {
  padding: clamp(40px, 6vw, 80px) 0 0;
}

.doc-inner {
  max-width: calc(760px + 2 * var(--gutter));
}

.doc-title {
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: var(--weight-900);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.doc-lede {
  margin-top: 18px;
  color: var(--secondary);
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}

.doc h2 {
  margin: 56px 0 12px;
  color: var(--ink);
  font-size: 28px;
  font-weight: var(--weight-900);
  letter-spacing: -0.025em;
  line-height: 1.15;
  scroll-margin-top: 24px;
}

.doc h3 {
  color: var(--ink);
  font-size: 19px;
  font-weight: var(--weight-800);
  letter-spacing: -0.01em;
  line-height: 1.3;
  scroll-margin-top: 24px;
}

.doc p + p,
.doc p + ul,
.doc p + ol,
.doc ul + p,
.doc ol + p {
  margin-top: 14px;
}

.doc ul,
.doc ol {
  padding-left: 24px;
}

.doc li + li {
  margin-top: 8px;
}

.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--grey-100);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.updated {
  margin-top: 14px;
  color: var(--secondary);
  font-size: 15px;
}

.summary,
.faq-item {
  padding: 22px 24px;
  border-radius: var(--radius-card);
  background: var(--card-fill);
  box-shadow: var(--inner-highlight), var(--shadow-hairline);
}

.summary {
  margin-top: 32px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.toc a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card-fill);
  box-shadow: var(--inner-highlight), var(--shadow-hairline);
  color: var(--body);
  font-size: 13px;
  font-weight: var(--weight-700);
  line-height: 1.2;
  text-decoration: none;
}

.toc a:hover {
  background: var(--white);
  color: var(--ink);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item p {
  margin-top: 8px;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Footer: the same on every page. */

.site-footer {
  margin-top: clamp(72px, 9vw, 128px);
  padding: 28px 0 40px;
  border-top: 1px solid var(--divider);
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

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

.footer-nav a {
  color: var(--body);
  font-weight: var(--weight-700);
  text-decoration: none;
}

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

.footer-dot {
  color: var(--grey-400);
}

.trademarks {
  max-width: 760px;
  margin-top: 12px;
  font-size: 12px;
}
