/* Pirol's website. Colours, type and radii are the app's own
   (web/style.css), so the page looks like the product it shows. */

:root {
  --bg: #faf9f5;
  --side: #f3f2ec;
  --surface: #ffffff;
  --surface-2: #f0eee6;
  --text: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.6);
  --line: rgba(0, 0, 0, 0.1);
  --hover: rgba(0, 0, 0, 0.05);
  --accent: #262626;
  --accent-ink: #ffffff;
  --mascot: #262626;
  --mascot-ink: #faf9f5;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.14);

  --sans: Inter, "Adwaita Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Noto Sans", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Tiempos Text", "Source Serif 4", "Source Serif Pro", Charter, "Bitstream Charter", "Iowan Old Style", "Noto Serif", Georgia, "Times New Roman", serif;
  --display: "Tiempos Headline", "Source Serif 4", "Source Serif Pro", Charter, "Iowan Old Style", "Noto Serif", Georgia, serif;

  --page: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 38rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919;
    --side: #1f1f1f;
    --surface: #303030;
    --surface-2: #232323;
    --text: rgba(255, 255, 255, 0.93);
    --muted: rgba(255, 255, 255, 0.62);
    --line: rgba(255, 255, 255, 0.1);
    --hover: rgba(255, 255, 255, 0.07);
    --accent: #ececec;
    --accent-ink: #191919;
    --mascot: #ececec;
    --mascot-ink: #1a1a1a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; }

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.mascot-body { fill: var(--mascot); }
.mascot-eye { fill: none; stroke: var(--mascot-ink); stroke-width: 7.4; stroke-linecap: round; }

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons: the app's send button colours, a bit larger */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover { filter: brightness(1.15); }

.button.quiet {
  border-color: var(--line);
  background: none;
  color: var(--text);
}

.button.quiet:hover { background: var(--hover); filter: none; }

.button.small {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
}

/* Top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  padding: 4px 4px 4px 0;
  text-decoration: none;
}

.brand-mark { width: 24px; height: 22px; }

.wordmark {
  font: 400 21px/1 var(--display);
  letter-spacing: -0.01em;
}

.nav { display: flex; gap: 2px; margin-right: 8px; }

.nav a, .langs a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.nav a:hover, .langs a:hover { background: var(--hover); color: var(--text); }

.langs {
  display: flex;
  gap: 0;
  margin-right: 8px;
}

.nav + .langs {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.langs a { padding: 6px 7px; font-size: 14px; letter-spacing: 0.02em; }
.langs a[aria-current] { color: var(--text); font-weight: 600; }

@media (max-width: 820px) {
  .nav { display: none; }
  .nav + .langs { border-left: 0; padding-left: 0; }
  .langs { margin-right: 4px; }
}

@media (max-width: 380px) {
  .top-row { gap: 4px; }
  .langs a { padding: 6px 5px; }
  .button.small { padding: 0 11px; }
}

/* Hero */

.hero {
  padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}

.hero-mark {
  width: 56px;
  height: 52px;
  margin: 0 auto 28px;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  max-width: 17em;
  margin: 0 auto;
  font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4rem);
  line-height: 1.08;
}

.lede {
  max-width: 34rem;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

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

.video {
  max-width: 64rem;
  margin: clamp(40px, 6vw, 64px) auto 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.video video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* The whole poster starts the video; the round button sits in its lower
   left corner, clear of the caption and the card in the frame. The poster
   is always the light app, so the button stays dark. */
.play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(8px, 2.4vw, 24px);
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: pointer;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 60px);
  height: clamp(44px, 5vw, 60px);
  border-radius: 50%;
  background: #262626;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.play-icon svg { width: 46%; height: 46%; margin-left: 6%; fill: currentColor; }
.play:hover .play-icon { filter: brightness(1.25); }
.play:focus-visible { outline: 3px solid #262626; outline-offset: -3px; }
.play:focus-visible .play-icon { outline: 2px solid #ffffff; outline-offset: 2px; }

@media (max-width: 600px) {
  /* Phones get the square cut, whose captions stay readable */
  .video video { aspect-ratio: 1 / 1; }
}

@media (max-width: 480px) {
  .hero .actions { flex-direction: column; align-items: center; }
  .hero .actions .button { width: 100%; max-width: 20rem; }
}

.video figcaption {
  max-width: var(--measure);
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Sections */

.band {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.head { max-width: 48rem; }

h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem);
  line-height: 1.12;
}

.head p {
  max-width: var(--measure);
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  text-wrap: pretty;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

/* What it does: each job with a message typed into Pirol */

.jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}

.job {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 16px;
  background: var(--surface-2);
}

.job > p { color: var(--muted); font-size: 16px; text-wrap: pretty; }

.composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.job > p { margin-bottom: 16px; }

.composer blockquote {
  min-height: 48px;
  padding: 0 6px;
  font-size: 16px;
  line-height: 24px;
}

.composer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.composer-row svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attach, .send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.attach { border: 0.5px solid var(--line); color: var(--muted); }

.send { margin-left: auto; background: var(--accent); color: var(--accent-ink); }
.send svg { stroke-width: 2; }

/* Screenshots of the real app */

.shot {
  margin-top: clamp(32px, 5vw, 48px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.shot img { width: 100%; }

/* A screenshot beside short points */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(32px, 5vw, 56px);
}

.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.feature.flip .shot { order: 2; }

.feature .shot { margin: 0; }

@media (min-width: 901px) {
  .feature .shot { position: sticky; top: 92px; }
}

.points {
  display: grid;
  gap: 28px;
}

.points li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.points li:first-child { padding-top: 0; border-top: 0; }

.points p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .shot { order: 0; }
  .points li:first-child { padding-top: 20px; border-top: 1px solid var(--line); }
}

/* The same empty chat in each of the app's languages */

.windows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}

.window {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--surface-2);
  overflow: hidden;
}

.window-name {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.window-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 32px 20px 28px;
  text-align: center;
}

.greeting {
  font: 300 30px/1.2 var(--display);
  letter-spacing: -0.02em;
}

.window .composer { margin-top: 0; text-align: left; }

.placeholder {
  min-height: 48px;
  padding: 2px 6px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.starters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.starters li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 22px;
}

/* On a phone the three windows stack, so each shows just its greeting and
   the box to type in */
@media (max-width: 600px) {
  .window-body { gap: 14px; padding: 20px 16px; }
  .greeting { font-size: 26px; }
  .placeholder { min-height: 0; }
  .starters { display: none; }
}

/* Pilot */

.pilot {
  padding: clamp(28px, 6vw, 64px);
  border-radius: 20px;
  background: var(--surface-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: clamp(28px, 4vw, 40px);
}

.steps li { display: grid; gap: 8px; align-content: start; }
.steps p { color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* One column: the number beside its step, not above it */
  .steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
  .step-number { margin: 0; }
}

.pilot .actions {
  align-items: center;
  justify-content: flex-start;
  gap: 12px 20px;
  margin-top: clamp(28px, 4vw, 40px);
}

.address {
  color: var(--muted);
  font-size: 15px;
  text-underline-offset: 3px;
}

.address:hover { color: var(--text); }

.note {
  max-width: var(--measure);
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}

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

/* Footer */

.foot {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--side);
  font-size: 15px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}

.foot-brand { display: grid; gap: 12px; max-width: 30rem; }
.foot-brand p { color: var(--muted); text-wrap: pretty; }
.foot-brand .brand { justify-self: start; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 20px;
}

.foot-links a {
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-links a[aria-current] { color: var(--text); }

.foot-small {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
}

/* Impressum, Datenschutz and Lizenzbedingungen, made from docs/legal/ */

.legal {
  min-height: 60vh;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: 80px;
}

.legal-text {
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  text-align: left;
  text-wrap: balance;
}

.legal h2 {
  margin: 44px 0 12px;
  font-size: 1.375rem;
  line-height: 1.3;
}

.legal h3 { margin: 28px 0 8px; font-size: 1.125rem; }

.legal p, .legal ul { margin: 0 0 14px; text-wrap: pretty; overflow-wrap: break-word; }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: 6px; }

/* A numbered clause: the number hangs in the margin on wide screens. */
.legal .clause { position: relative; }
.legal .clause-no { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .legal .clause { padding-left: 3.25rem; }
  .legal .clause-no { position: absolute; left: 0; }
  .legal .clause + ul { padding-left: calc(3.25rem + 1.25em); }
}

.legal a { color: inherit; text-underline-offset: 3px; }
.legal .legal-back { margin-top: 48px; }

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