/* agentiqrm — landing page
 *
 * The palette is lifted from the product's own theme (lib/theme/brand.dart) so
 * that clicking "Anmelden" does not feel like leaving for a different company.
 * Warm paper ground, near-black ink, one blue accent and nothing else.
 *
 * Hand-written CSS, no framework and no build step: this is a static site on
 * S3 and every kilobyte of framework would be shipped to every visitor to save
 * an afternoon once.
 */

:root {
  --paper: #e9e3d6;
  --paper2: #e3dccc;
  --paper3: #dcd4c1;
  --ink: #131a24;
  --body: #2b3542;
  --muted: #8b8f97;
  --blue: #3b51ee;
  --blue-soft: #6e7ff3;
  --ok: #3f7d5c;
  --warn: #b8863b;
  --danger: #b4453c;

  --radius: 6px;
  --max: 1080px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

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

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* The all-caps mono label the product uses for every section heading. */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

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

header {
  border-bottom: 1px solid var(--paper3);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}
header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
/* The mark from the agentiqrm brand kit: three paths, one stroke weight,
   round caps. It inherits currentColor, so the mark and the wordmark beside it
   can never drift apart. The 96-unit artboard already carries one stroke width
   of clear space, which is why the ink looks smaller than its box — that is the
   kit's spacing, not a sizing mistake, and cropping it is a misuse.
   28px against 1.05rem type with a 10px gap is the kit's own proportion
   (gap = 0.37 x mark height). */
.brand .mark {
  width: 28px; height: 28px;
  flex: none;
  color: var(--blue);
}
header nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
header nav a { color: var(--body); text-decoration: none; font-size: .95rem; }
header nav a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  border: 1px solid var(--blue);
  cursor: pointer;
}
.btn:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--paper3); }
.btn.ghost:hover { background: var(--paper2); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

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

.hero { padding: 88px 0 64px; }
.hero p.lead { font-size: 1.15rem; max-width: 62ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trial-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

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

section { padding: 56px 0; border-top: 1px solid var(--paper3); }
section.plain { border-top: none; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ prices */

.prices { align-items: stretch; }
.price {
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.price.featured { border-color: var(--blue); }
.price .amount {
  font-size: 2.1rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
}
.price .amount span { font-size: .95rem; font-weight: 400; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.price li { padding: 5px 0 5px 22px; position: relative; font-size: .95rem; }
.price li::before {
  content: "";
  position: absolute; left: 4px; top: 13px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.price .btn { margin-top: auto; text-align: center; }

/* --------------------------------------------------------------- vacancies */

.role {
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.role-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.role-head h3 { margin: 0; }
.role-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip {
  background: var(--paper3);
  color: var(--body);
  border-radius: var(--radius);
  padding: 3px 9px;
  font-size: 12.5px;
}
.role .btn { margin-top: 6px; }
.empty { color: var(--muted); font-style: italic; }

/* -------------------------------------------------------------------- form */

form { max-width: 620px; }
.field { margin-bottom: 16px; }
label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
}
textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.notice {
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 16px 0;
  font-size: .95rem;
  display: none;
}
.notice.ok { background: rgba(63,125,92,.14); color: var(--ok); display: block; }
.notice.bad { background: rgba(180,69,60,.12); color: var(--danger); display: block; }

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

footer {
  border-top: 1px solid var(--paper3);
  padding: 34px 0;
  color: var(--muted);
  font-size: .9rem;
}
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--body); }

@media (max-width: 640px) {
  header nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 40px; }
}

/* --- public project cards: contact and id -------------------------------- */
/* The contact block is deliberately quieter than the apply button: a candidate
 * should apply through the form, which files the application against the
 * project, and only reach for the phone when they need to ask something the
 * advert does not answer. */
.role-contact {
  margin: 14px 0 4px;
  font-size: 14px;
  color: var(--muted, #5b6472);
}
.role-contact a { color: inherit; }

/* Quoted on the phone and in e-mail subject lines, so it is selectable text
 * rather than an attribute nobody can copy. */
.role-id {
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted, #5b6472);
}

/* --- marketing layer ------------------------------------------------------
 *
 * Added after the first pass, which was correct and read like documentation.
 * A landing page has about four seconds to say what the thing is and why it is
 * different; paragraphs cannot do that, so this adds the shapes that can —
 * a stated claim, a worked example, and a demo somebody can click.
 */

/* THE ONE CLAIM. Oversized on purpose: it is the only sentence most visitors
 * will read, so it gets the room a headline deserves. */
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08;
  letter-spacing: -.022em; color: var(--ink); margin: 10px 0 18px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 62ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.btn.ghost { background: transparent; color: var(--ink);
  border: 1px solid rgba(19,26,36,.22); }
.btn.ghost:hover { border-color: var(--ink); }

/* --- the worked example ---------------------------------------------------
 * Showing beats claiming. This renders the actual dictation loop: what you
 * type on the left, what the assistant prepares on the right. Every string in
 * it is a real turn from the running system, not a mock-up.
 */
.demo { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 860px) { .demo { grid-template-columns: 1fr 1fr; gap: 26px; } }

.demo-side { background: var(--paper2); border: 1px solid rgba(19,26,36,.10);
  border-radius: var(--radius); padding: 20px 22px; }
.demo-side h3 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase;
  letter-spacing: .10em; color: var(--muted); font-weight: 600; }
.demo-typed { font-family: var(--mono); font-size: 14.5px; line-height: 1.65;
  color: var(--ink); margin: 12px 0 0; white-space: pre-wrap; }

.demo-card { background: var(--paper); border: 1px solid rgba(19,26,36,.14);
  border-left: 3px solid var(--blue); border-radius: 4px;
  padding: 12px 14px; margin-top: 12px; }
.demo-card .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); }
.demo-card .t { color: var(--ink); font-weight: 600; margin-top: 2px; }
.demo-card .d { font-size: 14px; margin-top: 4px; }
.demo-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Moneypenny replay. The answer is real; only its pacing is staged. Steps
   carry .mp-step and are revealed by js/moneypenny.js — but they are visible
   by default, so a visitor without JavaScript reads the whole thing. */
.mp { margin-top: 12px; }
.mp-idle { display: none; color: var(--muted); font-size: 14.5px; margin: 4px 0 0; }
.mp[data-idle="true"] .mp-idle { display: block; }
/* display, not opacity: a faded step still reserves its height, which left an
   empty panel the size of the finished answer. */
.mp[data-idle] .mp-step { display: none; }
.mp[data-idle] .mp-step.is-in {
  display: block;
  animation: mp-in .34s ease both;
}
@keyframes mp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mp[data-idle] .mp-step.is-in { animation: none; } }

.mp-tools {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.mp-tools li { padding: 2px 0 2px 18px; position: relative; }
.mp-tools li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--muted);
}

.mp-answer { font-size: 15px; }
.mp-answer p { margin: 0 0 10px; }
.mp-answer ul, .mp-answer ol { margin: 0 0 12px; padding-left: 20px; }
.mp-answer li { margin: 3px 0; }
.mp-answer em { color: var(--ink); font-style: normal; background: rgba(59,81,238,.09);
  padding: 1px 4px; border-radius: 3px; }

.mp-based { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(19,26,36,.12); }
.mp-based-h {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.mp-based ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mp-based li {
  font-family: var(--mono); font-size: 11.5px; color: var(--body);
  background: var(--paper); border: 1px solid rgba(19,26,36,.14);
  border-radius: 3px; padding: 3px 8px;
}
.mp-based li.org { border-color: rgba(59,81,238,.35); }
.mp-based-n { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

.mp-confirm { margin-top: 16px; }
/* Present and inert: the point is that the step exists, not that it works here. */
.mp-confirm .pill { opacity: .55; cursor: not-allowed; }
.mp-confirm-n { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; max-width: 46ch; }

.demo-cta { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

#mp-run { margin-top: 14px; }
#mp-run[disabled] { opacity: .6; cursor: default; }

/* Product shots. The #how section used to be a hand-drawn mock-up of what
   agentiqrm produces; it now carries photographs of a real run. Images are
   given explicit width/height so the page does not reflow as they load, and
   the paper photo gets a slight inset shadow so it reads as a photograph
   rather than as another panel of the interface. */
.shot { margin: 12px 0 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(19, 26, 36, .14);
}
.shot.paper img { box-shadow: 0 1px 3px rgba(19, 26, 36, .18); }
.shot.wide { margin-top: 10px; }
.shot-title {
  margin: 26px 0 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.lead-sm { max-width: 62ch; margin: 6px 0 18px; }

/* The correction the model spotted on the paper — the single most persuasive
   line in the section, so it is set apart from the images rather than
   captioning one of them. */
.demo-note {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--paper2);
  border: 1px solid rgba(19, 26, 36, .12);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  max-width: 78ch;
}

@media (min-width: 860px) {
  .demo { grid-template-columns: 1fr 1fr; align-items: start; }
}
.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(19,26,36,.22); color: var(--body); }
.pill.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* --- feature grid --------------------------------------------------------- */
.grid3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper2); border: 1px solid rgba(19,26,36,.10);
  border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.card p { margin: 0; font-size: 15px; }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--blue);
  letter-spacing: .08em; }

/* A claim with a number in it is a claim somebody can check. */
.facts { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 30px;
  padding-top: 26px; border-top: 1px solid rgba(19,26,36,.12); }
.fact .n { font-size: 26px; font-weight: 650; color: var(--ink);
  font-family: var(--mono); letter-spacing: -.01em; }
.fact .l { font-size: 13px; color: var(--muted); }

/* --- pricing -------------------------------------------------------------- */
.tiers { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { background: var(--paper2); border: 1px solid rgba(19,26,36,.12);
  border-radius: var(--radius); padding: 26px; }
.tier.lead { border-color: var(--blue); }
.tier .price { font-size: 32px; font-weight: 650; color: var(--ink);
  letter-spacing: -.02em; }
.tier .per { font-size: 14px; color: var(--muted); }
.tier ul { margin: 16px 0 0; padding-left: 18px; }
.tier li { margin-bottom: 7px; font-size: 15px; }

/* --- legal pages ---------------------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 34px 0 8px; font-weight: 600; }
.legal p { margin: 0; }
.legal a { color: var(--ink); }

/* A demo has to say so. Anything that could be mistaken for a real vacancy on
 * a real job board is a promise to a jobseeker that nobody can keep. */
.demo-banner { background: var(--paper3); border: 1px solid rgba(19,26,36,.16);
  border-left: 3px solid var(--warn); border-radius: 4px;
  padding: 14px 16px; margin: 0 0 26px; font-size: 15px; }
.demo-banner strong { color: var(--ink); }

/* --- the advert body ------------------------------------------------------
 *
 * WHITE-SPACE, because HTML collapses it and an advert is written in
 * paragraphs. The text is set with textContent — which preserves the newlines
 * perfectly — and then the browser folds them away, so a carefully laid out
 * description arrived as one unbroken row.
 *
 * CLAMPED, because a list of five projects each with eight lines of prose is a
 * list nobody scrolls to the bottom of. Three lines is enough to tell whether
 * this one is worth opening.
 */
.role-summary {
  white-space: pre-wrap;
  margin: 10px 0 0;
}
.role-summary.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* A link, not a button: it changes what you can see, it does not do anything. */
.role-more {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.role-more:hover { color: var(--ink); }

/* --- language switcher ---------------------------------------------------
   Text, not a flag. A flag names a country and the choice here is a language:
   Austrians and the Swiss read the German page, and the Union Jack has never
   been the right icon for a Dutch reader choosing English. */
.lang-switch {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(19,26,36,.16);
  border-radius: var(--radius);
  padding: 4px 9px;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--ink); border-color: rgba(19,26,36,.34); }


/* ------------------------------------------------------------------- demo */

.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 26px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 780px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-3 h3 { margin: 0 0 6px; font-size: 1.02rem; }
.grid-3 p { margin: 0; font-size: 15px; }

.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li { position: relative; padding: 4px 0 4px 22px; font-size: 14.5px; }
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: 11px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.grid-2 .card { display: flex; flex-direction: column; }
.grid-2 .card .cta { margin-top: auto; padding-top: 18px; }


/* Info marker on a legal term. Dienstvertrag and Werkvertrag are terms of art
   with no English equivalent — "contract of service" vs "contract for services"
   is a false friend, distinguishing employment from contracting, which is a
   different axis entirely. So the German stays and the explanation is offered
   rather than forced on a reader who does not need it. */
.gloss { position: relative; display: inline-block; }
.gloss-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-left: 4px;
  border: 1px solid var(--muted); border-radius: 50%;
  background: transparent; color: var(--muted);
  font-family: var(--mono); font-size: 9.5px; line-height: 1;
  cursor: help; padding: 0; vertical-align: 2px;
}
.gloss-i:hover, .gloss-i:focus-visible { border-color: var(--blue); color: var(--blue); }

.gloss-body {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  width: max-content; max-width: 290px;
  background: var(--ink); color: var(--paper);
  border-radius: 5px; padding: 10px 12px;
  font-size: 13px; line-height: 1.5; font-weight: 400;
  box-shadow: 0 4px 14px rgba(19, 26, 36, .22);
  opacity: 0; visibility: hidden; transition: opacity .14s ease;
  z-index: 30; text-align: left;
}
.gloss-body::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
}
.gloss-law { font-family: var(--mono); font-size: 11px; opacity: .72; }
.gloss:hover .gloss-body,
.gloss:focus-within .gloss-body,
.gloss-i[aria-expanded="true"] + .gloss-body { opacity: 1; visibility: visible; }

@media (max-width: 640px) {
  .gloss-body { left: 0; transform: none; max-width: 70vw; }
  .gloss-body::after { left: 22px; transform: none; }
}
