/* agentcake.css: the look of AgentCake's page (/agentcake), on Looseleaf paper, edge to edge. One grid, generous
 * spacing, and few decorations, each with a reason: the highlighter marks what the product tells apart, the sparkle ticks
 * mark the Upstar ranking, the blue blob and the green check mark the one hand-off the doodle is about, and the tape
 * holds the one card to act on. The data colours are AgentCake's own: human blue and agent orange.
 *
 * Drawn in the style of Looseleaf, a hand-drawn component library by Kevin Ngo (https://github.com/kevintngo/looseleaf
 * @ 4bdb647, MIT; THIRD_PARTY_NOTICES.txt): its paper tiles and its graph paper rules are Looseleaf's, its tokens and
 * the layers of a drawing are in agentcake-looseleaf/looseleaf.css, and agentcake-looseleaf/ink.js draws every element
 * that carries `data-draw`.
 *
 * This sheet is the look only. The page's content and behaviour are found by data attributes (see the comment in
 * agentcake.html), so this file and the classes can be replaced without touching agentcake.js. The three elements the
 * script shows and hides with `hidden` (the form, the error, the confirmation) set no `display` here, so the browser's
 * own [hidden] rule always wins; their layout is on what they hold.
 *
 * The cookie banner and the "Your privacy choices" link that consent.js adds on every page are drawn here too, as
 * paper, because this page does not load the product's stylesheet. */

@font-face {
  font-family: "AgentCake Wordmark";
  src: url("/fonts/fredoka-agentcake.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ac-human: #2a78d6;
  --ac-agent: #eb6834;
  --cake-outline: #2b2118;
  --cake-frosting: #ff8fb1;
  --cake-cherry: #e5383b;
  --cake-shine: #ffffff;
  --page-pad: clamp(20px, 5.4vw, 76px);
  --wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
/* The paper, edge to edge: Looseleaf's "fine" tooth (its fibre, slip and cloud tiles) on its paper colour. It is the
   root's background, so it covers the whole canvas at any width or height, and the tiles repeat without seams. */
html {
  background-color: var(--ll-paper);
  background-image: url("/agentcake-looseleaf/paper-fibre.png"), url("/agentcake-looseleaf/paper-slip.png"), url("/agentcake-looseleaf/paper-cloud.png");
  background-size: 240px 240px, 128px 128px, 720px 720px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  display: flow-root;
  margin: 0;
  color: var(--ll-ink);
  font-family: var(--font-hand);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--ll-hi-select); color: var(--ll-ink); }
:focus-visible { outline: 2px solid var(--ll-focus); outline-offset: 2px; }
a { color: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* The content column: one width and one left edge, centred on the paper */
.page {
  position: relative;
  max-width: var(--wrap);
  margin: 28px auto 44px;
  padding: 0 var(--page-pad);
}

/* The header: the logo, a long rule and GitHub, as a Looseleaf page heads itself */
.top { display: flex; align-items: center; gap: 18px; padding-top: 30px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--ll-ink); text-decoration: none; border-radius: 6px; }
.crumb-head { width: 38px; height: 38px; flex: none; }
.wordmark { font-family: "AgentCake Wordmark", var(--font-hand); font-size: 25px; font-weight: 700; line-height: 1.2; }
.top__rule { flex: 1 1 auto; min-width: 24px; height: 10px; margin-top: 8px; }
.top__rule:not([data-ink-ready]) { height: 0; border-bottom: 1.5px solid var(--ll-pencil-mark); }
.top__gh { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 2px; color: var(--ll-ink); font-size: 18px; text-decoration: none; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.top__gh .icon { width: 17px; height: 17px; }
.top__gh:hover { text-decoration-line: underline; text-decoration-color: var(--ll-marker); }

/* AgentCake's mascot, as its dashboard paints the head */
.crumb .o { stroke: var(--cake-outline); stroke-linecap: round; stroke-linejoin: round; fill: none; }
.crumb .f-body { fill: var(--cake-shine); }
.crumb .f-frosting { fill: var(--cake-frosting); }
.crumb .f-cherry { fill: var(--cake-cherry); }
.crumb .f-outline { fill: var(--cake-outline); }

/* The first screen: one column on one left edge: the words, then the doodle under them */
.hero { padding-top: 84px; scroll-margin-top: 24px; }
.hero__text { min-width: 0; }

.badge-row { display: flex; align-items: flex-end; gap: 2px; margin: 0 0 30px; }
.pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
  padding: 6px 15px 7px;
  color: var(--ll-ink);
  font-size: 15.5px;
  line-height: 1.3;
  text-decoration: none;
}
.pill:not([data-ink-ready]) { border-radius: 999px; background: var(--ll-sticky-yellow); }
.pill b { font-weight: 700; }
.pill__sep { color: var(--ll-pencil-text); }
.pill__part { display: inline-flex; align-items: center; gap: 6px; }
.pill .icon { width: 14px; height: 14px; }
.ticks { display: inline-block; width: 34px; height: 34px; margin: 0 0 22px; flex: none; }

h1 {
  margin: 0 0 42px;
  max-width: 19em;
  font-family: "Kevin Sans", var(--font-hand);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1:not([data-ink-ready]) .hl { background: linear-gradient(transparent 52%, var(--ll-hi-select) 52%, var(--ll-hi-select) 90%, transparent 90%); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  background: none;
  color: var(--ll-ink);
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 18px; height: 18px; }
.btn > span, .btn > .icon { transition: translate var(--ll-dur-press) var(--ll-ease-out); }
.btn[data-ink-ready]:active > span, .btn[data-ink-ready]:active > .icon { translate: 0.6px 1px; }
.btn--primary:not([data-ink-ready]) { border-radius: 9px; background: var(--ll-marker); }
.btn:not(.btn--primary):not([data-ink-ready]) { border-radius: 9px; background: var(--ll-slip); }

/* The doodle: a browser window with four sessions, each with its verdict sticker */
.replay { position: relative; min-width: 0; margin: 92px 0 0; padding: 0 0 52px; }
.window { position: relative; border-radius: 12px; }
.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1px 1px 0;
  padding: 13px 18px 12px;
  border-radius: 11px 11px 0 0;
  background: color-mix(in srgb, var(--ll-paper-shade) 82%, var(--ll-paper));
}
.window__dot { display: block; width: 13px; height: 13px; flex: none; border-radius: 50%; }
.window:not([data-ink-ready]) .window__dot[data-dot="tomato"] { background: var(--ll-tomato); }
.window:not([data-ink-ready]) .window__dot[data-dot="lemon"] { background: var(--ll-lemon); }
.window:not([data-ink-ready]) .window__dot[data-dot="grass"] { background: var(--ll-grass); }
.window__tab { margin-left: 12px; color: var(--ll-ink-soft); font-size: 15px; line-height: 1.2; }
.window:not([data-ink-ready]) { outline: 1.5px solid var(--ll-pencil-mark); }

/* Looseleaf's graph paper: fine rules every 16 px, a bolder one every 64 px */
.graph {
  background-color: var(--ll-graph);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ll-check-rule) 34%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ll-check-rule) 34%, transparent) 1px, transparent 1px),
    linear-gradient(to right, color-mix(in srgb, var(--ll-check-rule) 20%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ll-check-rule) 20%, transparent) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
}
.window__body { margin: 0 1px 1px; padding: 26px 26px 40px; border-radius: 0 0 11px 11px; }

.sessions { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "who verdict" "track track";
  align-items: center;
  gap: 9px 12px;
}
.session__who { grid-area: who; min-width: 0; color: var(--ll-ink-soft); font-size: 16.5px; line-height: 1.3; }
.track { grid-area: track; display: block; height: 16px; }
/* the timeline with the hand-off sits over the frame, so the note hanging from it is too */
.track--handoff { z-index: 3; }

.sticker {
  grid-area: verdict;
  justify-self: end;
  display: inline-block;
  padding: 4px 13px 5px;
  color: var(--ll-ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.sticker svg[data-ink] { filter: var(--ll-drop-sticker); }
.sticker:not([data-ink-ready]) { border-radius: 999px; background: var(--ll-paper-shade); }
.session:nth-child(1) .sticker { rotate: -2.5deg; }
.session:nth-child(2) .sticker { rotate: 1.8deg; }
.session:nth-child(3) .sticker { rotate: -1.4deg; }
.session:nth-child(4) .sticker { rotate: 2.2deg; }

/* the note: a blue marker blob with a green check sticker, hanging from the timeline right under its hand-off and
   over the window's bottom edge; its left edge is set from the hand-off (64% of the timeline) */
.note {
  position: absolute;
  top: calc(100% + 40px);
  left: calc(64% - 60px);
  display: flex;
  align-items: center;
  width: max-content;
}
.note .check { position: relative; z-index: 1; width: 48px; height: 48px; flex: none; margin-right: -9px; rotate: -7deg; }
.note__text { display: block; padding: 10px 18px 11px 20px; color: var(--ll-ink); font-size: 17px; line-height: 1.35; }

/* wide enough: one line per session, the name, the timeline and the verdict */
@media (min-width: 900px) {
  .session { grid-template-columns: 168px minmax(0, 1fr) 146px; grid-template-areas: "who track verdict"; gap: 0 18px; }
  .session .sticker { justify-self: start; }
}

.check { display: block; filter: var(--ll-drop-sticker); overflow: visible; }

/* The waitlist: one sheet of graph paper, taped to the page */
.wait { display: grid; justify-items: start; padding-top: 112px; scroll-margin-top: 40px; }
.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  align-items: center;
  column-gap: 64px;
  width: 100%;
  padding: 54px 56px 56px;
  border-radius: 12px;
}
.card:not([data-ink-ready]) { outline: 1.5px solid var(--ll-pencil-mark); }
.card h2 { margin: 0 0 10px; font-family: "Kevin Sans", var(--font-hand); font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.wait__sub { max-width: 24em; margin: 0; color: var(--ll-ink-soft); font-size: 18.5px; line-height: 1.5; }
.wait__form { display: flex; flex-direction: column; }
.wait__form label { display: block; margin: 0 0 9px; font-size: 16px; font-weight: 700; }
.field { display: flex; min-width: 0; min-height: 52px; margin-bottom: 14px; }
.field:not([data-ink-ready]) { border-radius: 6px; background: var(--ll-slip); }
.field input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ll-ink-you);
  caret-color: var(--ll-ink-you);
  font-family: var(--font-hand);
  font-size: 18px;
}
.field input::placeholder { color: var(--ll-pencil-text); opacity: 1; }
.wait__form .btn { width: 100%; min-height: 52px; }
.btn:disabled { opacity: 0.6; cursor: progress; pointer-events: none; }
/* the error: an orange sticky note under the button, the way Looseleaf leaves a note on the page */
.wait__error { margin-top: 18px; }
.error-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 11px 16px 13px;
  background-color: var(--ll-sticky-orange);
  background-image: var(--ll-sticky-sheen);
  box-shadow: var(--ll-shadow-sticky);
  rotate: -0.8deg;
  color: var(--ll-ink);
  font-size: 16.5px;
  line-height: 1.4;
}
.error-note .icon { width: 20px; height: 20px; margin-top: 2px; }

.tape { position: absolute; top: -13px; z-index: 3; display: block; width: 96px; height: 26px; }
.tape--l { left: 44px; rotate: -5deg; }
.tape--r { right: 44px; rotate: 4deg; }

.wait__done:focus { outline: none; }
.wait__done-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 16px; }
.wait__done-in .check { width: 56px; height: 56px; rotate: -6deg; }
.wait__done-in p { margin: 0; font-size: 18.5px; line-height: 1.5; }
.wait__done-in b { font-weight: 700; overflow-wrap: anywhere; }

/* The footer: a rule and one line */
.foot { padding: 104px 0 32px; }
.foot__rule { display: block; height: 10px; margin-bottom: 14px; }
.foot__rule:not([data-ink-ready]) { height: 0; border-bottom: 1.5px solid var(--ll-pencil-mark); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--ll-ink-soft); font-size: 16px; }
.foot__note { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.foot__links a { color: var(--ll-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.foot__links a:hover { text-decoration-color: var(--ll-marker); }
/* An inline-block keeps the separator out of the link's underline. */
.foot__links a::before { content: "·"; display: inline-block; margin: 0 10px; color: var(--ll-pencil-text); font-weight: 400; }

/* The cookie banner consent.js draws: a slip of paper with a pencil outline, and buttons as Looseleaf's look before
   their ink is drawn. */
.ck-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 18px 16px 22px;
  border-radius: 10px;
  background-color: var(--ll-slip);
  background-image: url("/agentcake-looseleaf/paper-fibre.png"), url("/agentcake-looseleaf/paper-slip.png");
  background-size: 240px 240px, 128px 128px;
  outline: 1.5px solid var(--ll-pencil-mark);
  outline-offset: -1.5px;
  box-shadow: var(--ll-shadow-sticky);
  color: var(--ll-ink);
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 1.45;
}
.ck-copy { flex: 1; min-width: 240px; margin: 0; color: var(--ll-ink-soft); }
.ck-copy a { color: var(--ll-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ck-actions { display: flex; flex: none; gap: 10px; }
.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--ll-slip);
  outline: 1.5px solid var(--ll-pencil-mark);
  outline-offset: -1.5px;
  color: var(--ll-ink);
  font-family: var(--font-hand);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.ck-btn:hover { background: color-mix(in srgb, var(--ll-hi) 42%, var(--ll-slip)); }
.ck-btn:focus-visible { outline: 2px solid var(--ll-focus); outline-offset: 2px; }

/* Narrower screens */
@media (max-width: 899px) {
  .card { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .wait__action { max-width: 460px; }
  .hero { padding-top: 64px; }
  .replay { margin-top: 80px; }
  /* the note can no longer hang from the hand-off itself: it keeps to the timeline's right end */
  .note { left: auto; right: 0; max-width: 100%; }
}

@media (max-width: 560px) {
  .page { margin: 10px 8px 14px; }
  .top { gap: 12px; padding-top: 22px; }
  .crumb-head { width: 32px; height: 32px; }
  .wordmark { font-size: 22px; }
  .top__gh { font-size: 17px; }
  .hero { padding-top: 46px; }
  .badge-row { margin-bottom: 24px; }
  .pill { flex-direction: column; align-items: flex-start; padding: 7px 16px 8px; font-size: 15px; }
  .pill__sep { display: none; }
  h1 { margin-bottom: 34px; font-size: 28px; line-height: 1.24; text-wrap: pretty; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .replay { margin-top: 64px; padding-bottom: 92px; }
  .window__bar { padding: 11px 14px 10px; }
  .window__body { padding: 18px 16px 28px; }
  .sessions { gap: 20px; }
  .session__who { font-size: 15.5px; }
  .sticker { padding: 3px 11px 4px; font-size: 13.5px; }
  .note__text { font-size: 16px; padding: 9px 14px 10px 18px; }
  .wait { padding-top: 88px; }
  .card { padding: 38px 20px 30px; }
  .card { row-gap: 26px; }
  .wait__sub { font-size: 17.5px; }
  .tape { width: 82px; }
  .tape--l { left: 18px; }
  .tape--r { right: 18px; }
  .foot { padding-top: 80px; }
  .foot__note { flex-basis: 100%; }
  .foot__links a:first-child::before { content: none; }
  /* closer separators, so the three links (consent.js's "Your privacy choices" the third) keep to one line */
  .foot__links a::before { margin: 0 7px; }
  .ck-banner { gap: 12px; }
  .ck-actions { width: 100%; }
  .ck-btn { flex: 1; }
}
