/* Agner website. Colours, type and components follow the Agner brand book and the Agner dashboard:
   one look for product and page. */
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;          /* White: the ground of the work surface */
  --side: #F7F6F3;        /* Side: quiet surfaces */
  --hover: #F1F0EC;
  --line: #EBE9E4;
  --line-2: #DBD9D3;
  --ink: #1A1B1F;
  --ink-2: #5B5E68;
  --ink-3: #8E9099;
  --cobalt: #2E5EFF;
  --cobalt-600: #2450E4;
  --cobalt-soft: #EEF2FF;
  --ice: #C5D7FF;
  --navy: #0B1741;
  --glass: color-mix(in srgb, var(--bg) 58%, transparent);
  --sh-sm: 0 1px 2px rgba(18, 20, 30, .06);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --pad: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.btn.primary:focus-visible { outline-color: var(--navy); }
.book :focus-visible, .book .btn.primary:focus-visible { outline-color: #FFFFFF; }
.ask input:focus-visible, .ask select:focus-visible { outline: none; }
::selection { background: var(--ice); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { position: relative; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* The glyph field under the whole page, as in the dashboard. */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bar, main, .foot { position: relative; z-index: 1; }

/* Buttons: the dashboard's own, at website size. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--bg); color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap;
  box-shadow: var(--sh-sm); transition: background-color .16s ease, transform .12s ease;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(.5px); }
.btn.primary {
  background: var(--cobalt); border-color: var(--cobalt-600); color: #fff;
  box-shadow: 0 1px 2px rgba(46, 94, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn.primary:hover { background: var(--cobalt-600); }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 16px; border-radius: 10px; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: 40px; height: 68px; }
.logo img { width: 122px; height: auto; }
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.links a:hover { color: var(--ink); }
.bar-act { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.signin { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.signin:hover { color: var(--ink); }

/* Hero: the dial stands large at the edge, as on the brand book's website head. */
.hero { position: relative; z-index: 1; padding: 112px 0 220px; }
.erlang { position: absolute; margin: 0; right: -3vw; top: -8px; width: clamp(420px, 46vw, 700px); }
#erlang { display: block; width: 100%; aspect-ratio: 254 / 406; }
.namesake { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.namesake span { display: inline-block; transition: transform .18s ease; }
.namesake:hover { color: var(--cobalt); }
.namesake:hover span { transform: translateX(3px); }
.hero-copy { max-width: 700px; }
.hero h1 { font-size: clamp(40px, 5.3vw, 76px); line-height: 1.0; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 span { display: block; }
.lede { margin-top: 26px; max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* The real dashboard, framed like a window without chrome. */
.shot { position: relative; z-index: 2; margin-top: -150px; }
.frame {
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(11, 23, 65, .14), 0 4px 14px rgba(11, 23, 65, .06);
}
.frame img { width: 100%; }
.sample { margin-top: 14px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* Numbers: the dashboard's stat row. */
.numbers { padding: 72px 0 0; }
.numbers-title { margin: 0 0 16px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--glass); }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.lab { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.lab svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--cobalt); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stat b { font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat small { font-size: 14px; color: var(--ink-2); }

/* Why: three cards with a glyph edge in the head, like the dashboard's cards. */
.why { padding: 160px 0 0; }
.head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; }
.head h2, .how h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.04; }
.head p { font-size: 18px; color: var(--ink-2); max-width: 470px; }
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); overflow: hidden; padding: 0 26px 28px; }
.patch { display: block; width: calc(100% + 52px); height: 92px; margin: 0 -26px 22px; }
.card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.card p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

/* How it works */
.how { padding: 180px 0 0; }
.step { margin-top: 96px; display: grid; grid-template-columns: 360px 1fr; gap: 72px; align-items: center; }
.step.flip { grid-template-columns: 1fr 360px; }
.step.flip .step-text { order: 2; }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--cobalt-soft); color: var(--cobalt); font-weight: 600; font-size: 15px; }
.step h3 { font-size: 28px; line-height: 1.12; }
.step p { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.frame-post { width: min(100%, 461px); justify-self: center; }

/* A post that needs a second look */
.second { padding: 160px 0 0; }
.second-grid { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: center; }
.second h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.06; }
.second p { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.second h2 + p { margin-top: 22px; }

/* Who does what */
.who { padding: 180px 0 0; }
.who h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.04; }
.who-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.who-card { border: 1px solid var(--line); border-radius: 12px; background: var(--glass); padding: 28px 30px 30px; }
.who-card.is-agner { background: var(--cobalt-soft); border-color: #D6E0FF; }
.who-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.ticks { margin-top: 18px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.is-agner .ticks li::before { background-color: var(--cobalt); }
.price-note { margin-top: 22px; font-size: 16px; color: var(--ink-2); }

/* Story: the dial at the edge, the history as a list like the post drawer. */
.story { position: relative; overflow: hidden; overflow: clip; padding: 200px 0 40px; }
.story .wrap { position: static; }
.story .dial { position: absolute; --sz: min(36vw, 540px); width: var(--sz); height: var(--sz); right: max(2vw, 24px); top: 150px; }
.story-head { position: relative; max-width: 640px; }
#story-title { scroll-margin-top: 60px; }
.story-head h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.04; }
.story-head p { margin-top: 20px; font-size: 18px; color: var(--ink-2); }
.story-head h2 + p { margin-top: 28px; }
.sign { display: grid; gap: 2px; margin-top: 32px !important; }
.sign b { color: var(--ink); font-weight: 600; font-size: 18px; }
.sign span { font-size: 14px; }
.timeline { position: relative; margin-top: 88px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.timeline-head { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.timeline ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px 24px; border-right: 1px solid var(--line); }
.timeline li:last-child { border-right: 0; }
.timeline li b { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.timeline li b::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.timeline li span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.timeline li.now { background: var(--cobalt-soft); }
.timeline li.now b { color: var(--cobalt); }
.timeline li.now b::before { background: var(--bg); border: 2px dashed var(--cobalt); background-image: none; }
.timeline li.now span { color: var(--ink); }

/* FAQ: questions left, the answer large on the right. */
.faq { padding: 200px 0 0; }
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.faq-list h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; margin-bottom: 32px; }
.faq-list ul { display: grid; gap: 4px; }
.q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 17px; font-weight: 500; color: var(--ink-2); transition: background-color .16s ease, color .16s ease; }
.q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .16s ease; }
.q:hover { background: var(--hover); color: var(--ink); }
.q.is-on { background: var(--cobalt-soft); color: var(--ink); }
.q.is-on::before { background: var(--cobalt); }
.a { display: none; }
.faq-pane { position: sticky; top: 120px; align-self: start; padding-top: 88px; }
.answer { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.015em; max-width: 26ch; transition: opacity .15s ease; }
.answer.is-swapping { opacity: 0; }

/* Book: navy. In the bottom-left corner the dial's top-right quarter, drawn in the brand's glyphs: the mark, as the corner of the dial.
   */
.book { position: relative; overflow: hidden; overflow: clip; margin-top: 200px; background: var(--navy); color: #fff; padding: 120px 0 128px; --dial: clamp(760px, 78vw, 1160px); min-height: calc(var(--dial) * 0.46 + 96px); }
.glyph-corner { position: absolute; left: 0; bottom: 0; width: calc(var(--dial) * 0.46); height: calc(var(--dial) * 0.46); }
.book-copy { position: relative; max-width: 600px; margin-left: auto; }
.book h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.04; }
.book-say p { margin-top: 18px; font-size: 19px; color: #C9D2EE; }
.ask { margin-top: 36px; display: flex; align-items: flex-end; gap: 10px; max-width: 640px; }
.ask-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: #C9D2EE; }
.field i { font-style: normal; color: #A9B6E0; font-weight: 400; }
.ask input, .ask select {
  width: 100%; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; outline: none; -moz-appearance: textfield; appearance: textfield;
}
.ask select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235B5E68' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/14px no-repeat; }
.ask select:focus { box-shadow: 0 0 0 3px rgba(197, 215, 255, .55); }
.ask input[aria-invalid="true"] { box-shadow: 0 0 0 3px rgba(255, 141, 118, .7); }
.ask input::-webkit-outer-spin-button, .ask input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ask input:focus { box-shadow: 0 0 0 3px rgba(197, 215, 255, .55); }
.math { margin-top: 16px; font-size: 15px; color: #C9D2EE; min-height: 1.5em; max-width: 600px; }
.direct { margin-top: 10px; font-size: 14px; color: #A9B6E0; }
.direct a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.math b { color: #fff; font-weight: 600; }

/* Footer */
.foot { padding: 40px 0 44px; }
.foot-in { display: flex; align-items: center; gap: 32px; font-size: 14px; color: var(--ink-2); }
.foot nav { display: flex; gap: 24px; margin-left: auto; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }

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

/* Tablet */
@media (max-width: 1080px) {
  .links { display: none; }
  .step, .step.flip { grid-template-columns: 1fr; gap: 32px; }
  .step.flip .step-text { order: 0; }
  .who-grid { grid-template-columns: 1fr; }
  #story-title { scroll-margin-top: 8px; }
  .hero-copy { max-width: 60%; }
  .erlang { width: 42vw; right: -6vw; top: 30px; }
  .second-grid { grid-template-columns: 1fr; gap: 32px; }
  .story .dial { position: relative; display: block; --sz: 56vw; right: auto; top: auto; margin: 0 auto 40px; }
  .book { --dial: 96vw; min-height: 0; padding-bottom: calc(var(--dial) * 0.46 + 56px); }
  .book-copy { margin-left: 0; }
  .timeline ol { grid-template-columns: 1fr; }
  .timeline li { flex-direction: row; align-items: baseline; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .timeline li:last-child { border-bottom: 0; }
  .timeline li b { font-size: 22px; min-width: 96px; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .bar-in { height: 60px; gap: 16px; }
  .logo img { width: 104px; }
  .signin { display: none; }
  .bar-act .btn { min-height: 34px; padding: 0 12px; font-size: 14px; }
  .hero { padding: 48px 0 450px; }
  .hero-copy { max-width: none; }
  .erlang { width: 82vw; right: -16vw; top: auto; bottom: -70px; }
  .story .dial { position: relative; display: block; --sz: 84vw; right: auto; top: auto; margin: 24px auto 0; }
  .story-head p { font-size: 17px; }
  .timeline { margin-top: 32px; }
  .lede { font-size: 18px; }
  .actions .btn { flex: 1 1 auto; }
  .shot { margin-top: -130px; }
  .frame { border-radius: 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); padding: 18px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .why { padding-top: 112px; }
  .second { padding-top: 112px; }
  .head { grid-template-columns: 1fr; gap: 20px; }
  .cards { grid-template-columns: 1fr; }
  .how { padding-top: 128px; }
  .step { margin-top: 64px; }
  .story, .faq, .who { padding-top: 128px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-pane { display: none; }
  .q[aria-expanded="true"] + .a { display: block; padding: 6px 12px 14px 32px; font-size: 18px; line-height: 1.45; }
  .book { --dial: 118vw; margin-top: 128px; padding: 88px 0 calc(var(--dial) * 0.46 + 40px); }
  .ask { flex-direction: column; align-items: stretch; }
  .ask-fields { grid-template-columns: 1fr; }
  .ask input, .ask select { height: 52px; }
  .foot-in { flex-wrap: wrap; gap: 16px; }
  .foot nav { margin-left: 0; flex-wrap: wrap; gap: 12px 20px; }
}

/* Short landscape screens */
@media (max-height: 500px) and (orientation: landscape) {
  .how { padding-top: 40px; }
  .how h2 { margin-bottom: 0; }
  .step, .step.flip { margin-top: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
  .step.flip .step-text { order: 0; }
  .step h3 { font-size: 22px; }
}
