/*
 * EU Chat, product site.
 *
 * Built like the other product pages of the EU Suite (eu-notes.de is the
 * model): a white page with full-width sections that alternate with the
 * suite's light ground, big two-line headings, one picture beside each
 * argument, a dark foot. EU Chat's blue where Notes has its petrol. The legal
 * pages are a narrow column with a way back.
 */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --ink:      #182236;
  --ink-2:    #3a4659;
  --ink-3:    #59667a;
  --paper:    #ffffff;
  --ground:   #f5f7fb;
  --rule:     #dfe4ed;
  --night:    #111827;
  --on-night: #8792a6;

  --accent:       #087bc4;
  --accent-press: #055e97;
  --accent-tint:  #f0f8fe;
  --on-accent:    #ffffff;

  --warn-tint: #fdf0e2;
  --warn-rule: #f2d3ad;
  --warn-ink:  #6b3a00;

  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", ui-monospace, monospace;

  --edge: clamp(20px, 4.5vw, 64px);
  --shadow: 0 2px 4px rgb(24 34 54 / 0.06), 0 30px 60px -20px rgb(24 34 54 / 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #eef1f7;
    --ink-2:    #c9d1df;
    --ink-3:    #aab4c6;
    --paper:    #111827;
    --ground:   #0d1320;
    --rule:     #243049;
    --night:    #0a0f1a;
    --on-night: #8792a6;

    --accent:       #65c4ff;
    --accent-press: #b3e2ff;
    --accent-tint:  #12283c;
    --on-accent:    #0d1320;

    --warn-tint: #2a2114;
    --warn-rule: #5a4322;
    --warn-ink:  #ffd59a;

    --shadow: 0 2px 4px rgb(0 0 0 / 0.4), 0 30px 60px -20px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

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

::selection { background: color-mix(in oklab, var(--accent) 24%, transparent); }

/* ---------------------------------------------------------------------------
   Head
   --------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding-inline: var(--edge);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

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

.site-head__end {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}

.site-head__end > a:not(.btn) { text-decoration: none; }

/* Part of the suite, said once at the top of every page. */
.suite-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 22px;
  border-right: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}

.suite-tag img { width: 20px; height: 20px; }

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms cubic-bezier(0.2, 0, 0, 1), border-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.btn:hover { border-color: var(--ink-3); }

/* The page's one call, in the product colour. */
.btn--primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover { background: var(--accent-press); border-color: transparent; }

/* A second strong action in a section of its own: ink. */
.btn--ink {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover { opacity: 0.9; border-color: transparent; }

.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */

section { padding: clamp(64px, 7vw, 100px) var(--edge); }

.band { background: var(--ground); border-block: 1px solid var(--rule); }

/* A section's name above its first line: in the product colour, after the
   spur, the three lines of the logo. */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Whole screen pixels (pixels.js), so the three stand evenly apart on a
   scaled screen too. */
.spur { --u: calc(var(--device-px, 1px) * var(--device-px-per-css, 1)); display: inline-flex; gap: calc(var(--u) * 3); height: 16px; }
.spur > i { width: calc(var(--u) * 2); background: var(--accent); }

h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: clamp(56px, 6vw, 80px);
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .accent { color: var(--accent); }

.hero__lede { margin-top: 24px; max-width: 540px; font-size: 19px; line-height: 1.55; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

/* The app on a laptop and a phone, with the arcs of the brand behind them. */
.devices {
  position: relative;
  margin: 0;
  padding: 40px 40px 40px 0;
}

.arcs {
  position: absolute;
  top: -10px;
  right: -20px;
  width: 260px;
  height: 300px;
  pointer-events: none;
}

.arcs i {
  position: absolute;
  inset: 0;
  border: 10px solid var(--accent);
  border-bottom: 0;
  border-left-color: var(--accent);
  border-radius: 999px 999px 0 0;
}

.arcs i:nth-child(2) { inset: 28px 28px 0; }
.arcs i:nth-child(3) { inset: 56px 56px 0; }

.laptop {
  position: relative;
  padding: 12px 12px 14px;
  border-radius: 18px;
  background: #1b2232;
  box-shadow: var(--shadow);
}

.laptop::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #3a4459;
}

.laptop img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24%;
  min-width: 110px;
  padding: 7px;
  border-radius: 30px;
  background: #1b2232;
  box-shadow: var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* ---------------------------------------------------------------------------
   The suite, and the rows of arguments
   --------------------------------------------------------------------------- */

.suite-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding-block: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.suite-strip a { display: inline-flex; }
.suite-strip img { width: 28px; height: 28px; border-radius: 7px; }

/* A picture on one side, the argument on the other, swapped every other row. */
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.row--flip > .row__picture { order: 2; }

.row__text h2 { max-width: 19ch; }
.row__text .lede { margin-top: 20px; max-width: 560px; }
.row__text .lede + .lede { margin-top: 16px; }

.row__picture { margin: 0; }

.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--paper);
}

/* A part of the app, larger: one corner of a screenshot in a framed window. */
.zoom {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.zoom img {
  position: absolute;
  width: var(--w, 205%);
  max-width: none;
  height: auto;
  left: var(--x, -66%);
  top: var(--y, -40%);
}

/* A recording of what the app asks for, set like a browser's network log. */
.trace {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13px;
}

.trace__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 700;
}

.trace__sum {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-press);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.trace__rows { margin: 0; padding: 6px 0; list-style: none; }

.trace__rows li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 5px 18px;
}

.trace__rows li:nth-child(even) { background: var(--ground); }

.trace__type { color: var(--ink-3); font-weight: 600; }

.trace__path {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trace__host { font-family: var(--mono); font-size: 12px; color: var(--accent-press); }

.trace__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
}

/* The facts under the measurement: a term and its value, one per line. */
.facts-list { margin: 24px 0 0; max-width: 560px; border-top: 1px solid var(--rule); }

.facts-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.facts-list dt { color: var(--ink-3); }
.facts-list dd { margin: 0; font-weight: 650; text-align: right; }

/* Screens of the working day, two by two. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
  max-width: 1280px;
  margin: 48px auto 0;
}

.gallery figure { margin: 0; }

.gallery figcaption {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.gallery figcaption strong { color: var(--ink); font-weight: 750; }

/* What joins the suite next, each marked as coming. */
.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
}

.link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
}

.link img { width: 44px; height: 44px; flex: none; }
.link > div { flex: 1; min-width: 0; }
.link strong { display: block; font-size: 16px; font-weight: 750; }
.link span:not(.soon) { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.soon {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Questions, one under the other, each opening in place. */
.faq { max-width: 760px; margin: 40px auto 0; border-top: 1px solid var(--rule); }

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.faq details p {
  margin: -4px 0 0;
  padding: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Centred: the apps, the price, the last call. */
.centre { max-width: 760px; margin: 0 auto; text-align: center; }
.centre h2 { font-size: clamp(32px, 3.6vw, 44px); }
.centre .lede { margin-top: 16px; }
.centre .btn { margin-top: 28px; }

.apps-band { padding-bottom: 0; overflow: hidden; }

.apps-band .devices {
  max-width: 980px;
  margin: 56px auto 0;
  padding: 0 0 0 0;
}

.apps-band .laptop { border-radius: 18px 18px 0 0; padding-bottom: 0; }
.apps-band .laptop img { border-radius: 6px 6px 0 0; }
.apps-band .phone { bottom: -40px; right: 4%; width: 21%; }

/* Prices. */
.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 44px auto 0;
  text-align: left;
}

.price {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
}

.price--main { border: 2px solid var(--accent); }

.price__label {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.price--main .price__label { color: var(--accent); }

.price__figure {
  margin-top: 12px;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price p { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.price .btn { margin-top: 24px; }

.ready { padding-bottom: 56px; }
.ready h2 { font-size: clamp(36px, 4vw, 52px); font-weight: 800; }
.ready .btn { margin-top: 24px; }

/* ---------------------------------------------------------------------------
   Foot
   --------------------------------------------------------------------------- */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 40px var(--edge);
  background: var(--night);
  color: var(--on-night);
  font-size: 14px;
}

.site-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}

.site-foot__brand img { width: 24px; height: 24px; border-radius: 6px; background: #ffffff; }

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}

.site-foot a { text-decoration: none; }
.site-foot__links a:hover { color: #ffffff; }

/* ---------------------------------------------------------------------------
   Pages of their own: downloads, terms, imprint. A narrow column with a way
   back, the way the suite's legal pages are set.
   --------------------------------------------------------------------------- */

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--edge) clamp(64px, 7vw, 100px);
  box-sizing: content-box;
}

.page__eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.page h1 {
  font-size: clamp(36px, 4.4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page__lede { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--ink-3); }

.page h2 { margin: 36px 0 10px; font-size: 18px; line-height: 1.35; font-weight: 750; letter-spacing: -0.01em; }
.page p { margin: 6px 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.page p a { color: var(--accent-press); }
.page .page__stand { margin-top: 40px; font-size: 14px; color: var(--ink-3); }
#downloads-note { margin-top: 20px; }

.notice {
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--warn-rule);
  border-radius: 8px;
  background: var(--warn-tint);
  color: var(--warn-ink);
  font-size: 15px;
  line-height: 1.6;
}

.notice strong { font-weight: 750; }

.imprint__name { font-weight: 650; color: var(--ink) !important; }
.imprint__muted { color: var(--ink-3) !important; }

/* Downloads, one row each. */
.dl-list { display: grid; gap: 12px; margin-top: 32px; }

.dl {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

a.dl:hover { border-color: var(--accent); }

.dl__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-press);
}

.dl__text { flex: 1; min-width: 0; }
.dl__name { display: block; font-size: 16px; font-weight: 700; }
.dl__meta { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.dl--pending { background: var(--ground); }
.dl--pending .dl__icon { background: var(--rule); color: var(--ink-3); }

.page ul.notes { margin: 28px 0 0; padding-left: 1.1em; }
.page ul.notes li { margin-bottom: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.page ul.notes strong { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------------------
   Narrow
   --------------------------------------------------------------------------- */

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

@media (max-width: 900px) {
  .hero,
  .row { grid-template-columns: minmax(0, 1fr); }
  .row--flip > .row__picture { order: 0; }
  .arcs { display: none; }
  .devices { padding: 0 24px 24px 0; }
  .suite-tag { display: none; }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .gallery,
  .links { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .site-head__inner { gap: 14px; }
  .site-head__end { gap: 14px; }
  .site-head__end .btn { display: none; }
  .site-foot__links { margin-left: 0; }
  /* The host is the same on every line; the path is what there is room for. */
  .trace__rows li { grid-template-columns: 56px minmax(0, 1fr); }
  .trace__host { display: none; }
  /* "Coming" under the words rather than squeezing them. */
  .link { flex-wrap: wrap; }
  .link > div { flex-basis: calc(100% - 60px); }
  .soon { margin-left: 60px; }
}
