/* The sales page (goal 97). ArgusEdge's colours, ground and glass, copied from docs/design/look.md (decisions 72 and 177)
   rather than imported, so the page shares no code with the product. Dark only, the system font stack, no web font. */

:root {
  --text: #eef0f2;
  --soft: #a7adb6;
  --faint: #6b717b; /* never text (look.md): separators and marks only */
  --you: #7fb3ff; /* the owner's blue: the one primary action, the focus ring */
  --mint: #8fd9a8;
  --amber: #e0b473;
  --on-accent: #0d0e11;
  --ground: #101318;
  --ground-deep: #0b0d10;
  --ground-raised: #191d24;
  --line: rgba(255, 255, 255, 0.08);
  --r-card: 12px;
  --r-window: 26px;
  --gutter: 16px;
  --font: ui-sans-serif, -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: dark;
}

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

html {
  background: var(--ground-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* A column, so the footer sits at the bottom of a short page (the 404) and under the content of a long one. */
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The ground (look.md), on a fixed layer rather than background-attachment: fixed, which phones paint badly. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 20% 14%, rgba(143, 217, 168, 0.13), transparent 72%),
    radial-gradient(48% 42% at 84% 80%, rgba(127, 179, 255, 0.1), transparent 72%),
    radial-gradient(44% 40% at 88% 12%, rgba(224, 180, 115, 0.055), transparent 74%),
    radial-gradient(80% 70% at 50% 44%, var(--ground-raised) 0%, var(--ground) 55%, var(--ground-deep) 100%);
}

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

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

:focus-visible {
  outline: 2px solid var(--you);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

main {
  flex: 1 0 auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--you);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

.narrow {
  max-width: 760px;
}

/* A section of words alone keeps a reading width, on the page's left edge like the rest. */
.measure > * {
  max-width: 44rem;
}

/* Glass (look.md): every card and panel. Without look.md's backdrop blur: the cards here sit on the page's smooth,
   still ground, where a blur shows nothing, and on a slow phone it is the page's most expensive paint. */
.glass {
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 -18px 36px rgba(0, 0, 0, 0.16),
    0 18px 50px rgba(0, 0, 0, 0.4);
}

/* ----------------------------------------------------------------------------------------- controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--you);
  color: var(--on-accent);
  box-shadow: 0 10px 30px rgba(127, 179, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background: #93c0ff;
  transform: translateY(-1px);
}

.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.btn-quiet:hover {
  text-decoration: underline;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.actions-center {
  justify-content: center;
}

/* ----------------------------------------------------------------------------------------- the top bar */

.topbar {
  padding: 14px 0;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ----------------------------------------------------------------------------------------- type */

.eyebrow {
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 750;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 700;
}

h3 {
  font-size: 19px;
  font-weight: 650;
}

.lede {
  margin-top: 22px;
  max-width: 34em;
  color: var(--soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.body-text {
  margin-top: 18px;
  color: var(--soft);
  font-size: 18px;
}

.note {
  margin-top: 14px;
  color: var(--soft);
  font-size: 14px;
}

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

.hero {
  padding: 40px 0 24px;
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero-shot {
  margin: 0;
}

/* The frame is the picture's, so the caption under it sits outside the rounded window. */
.hero-shot picture {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px rgba(0, 0, 0, 0.55);
}

.demo-note {
  margin-top: 12px;
  color: var(--soft);
  font-size: 13px;
}

/* The hero's box is sized before its picture arrives, so nothing under it moves: the laptop's Home and, under 720 px,
   the phone's (tools/make-images.py makes them 1440 × 900 and 780 × 1340). */
.hero-shot img {
  width: 100%;
  aspect-ratio: 1440 / 900;
}

/* ----------------------------------------------------------------------------------------- sections */

.section {
  padding: 72px 0 0;
}

.section-last {
  padding-bottom: 88px;
}

.section h2 {
  max-width: 22em;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 22px 22px 24px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(143, 217, 168, 0.16);
  color: var(--mint);
  font-weight: 700;
}

.step p,
.feature p,
.fact p,
.example p {
  margin-top: 10px;
  color: var(--soft);
}

.shot {
  margin: 20px 0 0;
}

.shot img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.45);
}

.shot-wide {
  margin-top: 28px;
  max-width: 620px;
}

.shot figcaption {
  margin-top: 12px;
  color: var(--soft);
  font-size: 14px;
}

/* A tall screen is shown down to a height and fades out, so the cards beside it stay level. */
.shot-tall picture {
  display: block;
  max-height: 440px;
  overflow: hidden;
  border-radius: 10px;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}

.shot-phone {
  max-width: 300px;
}

.features {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.feature {
  padding: 24px;
}

.chat {
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px var(--line);
}

.chat-label {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bubble {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px 14px 5px 14px;
  font-size: 15px;
}

/* Inside .chat, so it outranks .feature p's soft colour: the owner's words are in the text colour, as in the app. */
.chat .bubble-owner {
  margin-left: auto;
  max-width: 92%;
  background: rgba(127, 179, 255, 0.2);
  color: var(--text);
}

/* ----------------------------------------------------------------------------------------- the film */

.film {
  margin-top: 32px;
  padding: 8px;
  border-radius: 18px;
}

.film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}

.lang {
  display: inline-flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lang[hidden] {
  display: none;
}

.lang-option {
  min-width: 96px;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font: 600 15px/1 var(--font);
  cursor: pointer;
}

.lang-option[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ----------------------------------------------------------------------------------------- the studio, the data */

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

.example {
  padding: 24px;
}

.example-eyebrow {
  margin-bottom: 8px;
  color: #c9a7ff; /* the lavender the example's eyebrow has kept since goal 97 (look.md) */
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.fact {
  padding: 22px;
}

.fact h3 {
  font-size: 17px;
}

.more {
  margin-top: 22px;
}

.more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ----------------------------------------------------------------------------------------- book a demo */

.book {
  padding: 48px 24px;
  text-align: center;
}

.book h2 {
  margin: 0 auto;
}

.phone {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.phone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  color: var(--soft);
  font-size: 14px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  border-radius: 5px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ----------------------------------------------------------------------------------------- /security and the 404 */

.statement {
  padding-top: 24px;
  padding-bottom: 80px;
}

.back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.statement h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4.4vw, 44px);
}

.statement h2 {
  margin-top: 40px;
  font-size: 22px;
}

.statement p,
.statement li {
  margin-top: 12px;
  color: var(--soft);
  font-size: 17px;
}

.statement strong {
  color: var(--text);
  font-weight: 650;
}

.statement ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.statement li::marker {
  color: var(--soft);
}

.missing {
  padding: 96px 0 120px;
}

.missing h1 {
  font-size: clamp(30px, 4.4vw, 44px);
}

/* ----------------------------------------------------------------------------------------- wider screens */

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }

  .steps,
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .section {
    padding-top: 104px;
  }

  .section-last {
    padding-bottom: 120px;
  }

  .book {
    padding: 64px 40px;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
  }

  .hero {
    padding: 64px 0 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    align-items: center;
    gap: 48px;
  }

  .split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 56px;
  }

  /* The Updates screen beside its caption, so the block has no empty half. */
  .shot-wide {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 40px;
    max-width: none;
  }

  .shot-wide figcaption {
    margin-top: 0;
    font-size: 18px;
  }
}

/* The hero's words above the screen on a phone and a tablet, and the screen no wider than it reads well. */
@media (max-width: 959px) {
  .hero-shot {
    max-width: 720px;
  }
}

@media (max-width: 719px) {
  .hero-shot img {
    aspect-ratio: 780 / 1340;
  }

  /* Its full width up to 390, never its picture's: centred by auto margins, a grid item would otherwise shrink to the
     picture's width, which is unknown until it loads, and move what is beside it. */
  .hero-shot {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
  }

  .hero-shot picture {
    border-radius: 22px;
  }

  /* A phone gets each screen's one card, cropped short, so it is shown whole rather than faded out. */
  .shot-tall:not(.shot-phone) picture {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .actions .btn {
    width: 100%;
  }

  .actions .btn-quiet {
    margin: 0 auto;
  }
}

/* look.md: under reduced transparency, solid surfaces with the same lit edge and no blur or gradients. */
@media (prefers-reduced-transparency: reduce) {
  body::before {
    background: var(--ground);
  }

  .glass {
    background: #171b21;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
