/* pepito site
   The page is a Mac desktop: the navigation is a menu bar, examples are windows,
   the launch offer is a notification. System fonts only, no third-party request
   until checkout. Orange means "recording", nothing else. */

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

:root {
  --desk: #e4e6ea;       /* page, like a desktop */
  --window: #ffffff;     /* documents and windows */
  --ink: #1c2230;        /* text */
  --ink-2: #555d6e;      /* secondary text */
  --rule: #cfd3da;       /* separators */
  --marker: #ffe45c;     /* highlighter on decisions */
  --rec: #ff9500;        /* recording state, as in the app, and nothing else */
  --link: #4b49c9;       /* system indigo, as in the app */
  --ok: #2d7a4b;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --bar: 30px;
  --maxw: 1180px;
  --window-shadow: 0 0 0 0.5px rgba(0,0,0,0.18), 0 22px 60px rgba(28,34,48,0.18);
}

html { -webkit-font-smoothing: antialiased; scroll-padding-top: calc(var(--bar) + 24px); }
body {
  font: 17px/1.5 var(--sans);
  color: var(--ink);
  background: var(--desk);
  font-feature-settings: "tnum";
}
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
code { font: 500 0.9em var(--mono); }

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

/* ---------- Menu bar: the navigation ---------- */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar);
  display: flex; align-items: center; gap: 2px;
  padding: 0 10px;
  font-size: 13.5px;
  background: rgba(246, 247, 249, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.menubar a, .menubar button {
  font: inherit; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: default;
  height: 22px; padding: 0 9px; border-radius: 5px;
  display: inline-flex; align-items: center;
}
.menubar a:hover, .menubar button:hover,
.menubar button[aria-expanded="true"] { background: rgba(0,0,0,0.09); }
.menubar .app { font-weight: 700; }
.menubar .spacer { flex: 1; }
.menubar .clock { padding: 0 8px; white-space: nowrap; }
.status-icon .app-icon { width: 20px; height: 16.3px; display: block; }

.menu {
  position: fixed; top: calc(var(--bar) + 2px); z-index: 60;
  min-width: 270px; padding: 5px;
  background: rgba(246, 247, 249, 0.92);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  border-radius: 9px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.25), 0 12px 36px rgba(20,24,35,0.22);
  font-size: 13.5px;
}
.menu[hidden] { display: none; }
.menu a, .menu button {
  display: flex; justify-content: space-between; gap: 24px; width: 100%;
  padding: 3px 10px; border-radius: 5px;
  color: var(--ink); text-decoration: none; text-align: left;
  font: inherit; background: none; border: 0; cursor: default;
}
.menu a:hover, .menu a:focus-visible, .menu button:hover, .menu button:focus-visible {
  background: var(--link); color: #fff; outline: none;
}
.menu .key { color: var(--ink-2); }
.menu a:hover .key, .menu a:focus-visible .key { color: rgba(255,255,255,0.8); }
.menu hr { border: 0; border-top: 1px solid rgba(0,0,0,0.1); margin: 5px 10px; }
.menu .strong { font-weight: 600; }

/* ---------- Launch offer: a macOS notification ---------- */
.notice {
  position: absolute; z-index: 40;
  top: calc(var(--bar) + 10px); right: 12px;
  width: 356px;
  display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px;
  padding: 12px 14px 14px;
  background: rgba(246, 247, 249, 0.9);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  border-radius: 16px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2), 0 10px 30px rgba(20,24,35,0.18);
  font-size: 13.5px; line-height: 1.35;
}
.notice[hidden] { display: none; }
.notice img { grid-row: span 3; width: 38px; height: 38px; margin-top: 2px; }
.notice strong { font-weight: 650; padding-right: 22px; }
.notice p { color: var(--ink-2); }
.notice .actions { display: flex; gap: 8px; margin-top: 8px; }
.notice .actions button {
  font: 500 13px var(--sans); color: var(--ink);
  padding: 4px 12px; border-radius: 6px; border: 0; cursor: pointer;
  background: rgba(0,0,0,0.07);
}
.notice .actions button:hover { background: rgba(0,0,0,0.12); }
.notice .dismiss {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,0.07); color: var(--ink-2);
  font: 15px/22px var(--sans); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--bar) + 88px);
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.lede { font-size: 21px; line-height: 1.45; max-width: 30em; }
.lede + .lede { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

.get { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.button {
  display: inline-flex; align-items: center;
  height: 46px; padding: 0 22px;
  background: var(--ink); color: #fff;
  font: 600 17px var(--sans); text-decoration: none;
  border: 0; border-radius: 8px; cursor: pointer;
}
.button:hover { background: #2c3446; }
.brew {
  font: 15px var(--sans); color: var(--ink-2);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.brew code { font-size: 15px; color: var(--ink); border-bottom: 1px dashed var(--ink-2); }
.brew[data-copied] code { border-bottom-color: transparent; }
.fine { margin-top: 18px; font-size: 14px; color: var(--ink-2); }

/* A window, used for the minutes and the screenshots */
.window {
  background: var(--window);
  border-radius: 10px;
  box-shadow: var(--window-shadow);
  overflow: hidden;
}
.window-title {
  display: flex; align-items: center;
  height: 38px; padding: 0 14px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px solid #eceef1;
}
.lights { display: flex; gap: 7px; margin-right: 18px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #d7dade; }

.doc { margin-top: 8px; }
.doc-body {
  padding: 26px 32px 32px;
  font-family: var(--serif);
  font-size: 16.5px; line-height: 1.6;
}
.doc-body h2 { font: 700 25px/1.2 var(--serif); margin-bottom: 4px; }
.doc-body .meta { font: 14px var(--sans); color: var(--ink-2); margin-bottom: 20px; }
.doc-body h3 { font: 650 15px var(--sans); margin: 20px 0 6px; }
.doc-body ul { padding-left: 1.1em; }
.doc-body li { margin: 3px 0; }
.mark {
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 60% / 100% 78%;
  padding: 0 2px; margin: 0 -2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.doc-foot {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 12px 32px; border-top: 1px solid #eceef1;
  font-size: 13px; color: var(--ink-2);
}
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); margin-right: 6px; vertical-align: 1px; }

/* The one orchestrated moment: the highlighter passes over the decisions */
@media (prefers-reduced-motion: no-preference) {
  .mark { animation: highlight 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
  .d1 .mark { animation-delay: 0.6s; }
  .d2 .mark { animation-delay: 1.15s; }
  .d3 .mark { animation-delay: 1.7s; }
  @keyframes highlight { from { background-size: 0% 78%; } to { background-size: 100% 78%; } }
}

/* ---------- Sections ---------- */
.block { padding: 96px 0; border-top: 1px solid var(--rule); }
.block-head { max-width: 38em; margin-bottom: 48px; }
.title {
  font-family: var(--display);
  font-weight: 750; font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.block-head p { color: var(--ink-2); }
.subtitle { font: 700 19px/1.3 var(--display); margin-bottom: 6px; }

/* Before / during / after */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.moment { border-top: 2px solid var(--ink); padding-top: 18px; }
.moment > h3 { font: 750 24px/1.2 var(--display); letter-spacing: -0.015em; margin-bottom: 22px; }
.moment dl > div { margin-bottom: 22px; }
.moment dt { font-weight: 650; margin-bottom: 2px; }
.moment dd { color: var(--ink-2); font-size: 16px; }
.moment figure { margin: 4px 0 26px; }
.moment figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; }

/* Recordings: text and screenshot side by side, alternating */
.showcase { display: grid; gap: 72px; }
.showcase-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.showcase-row.is-flipped { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.showcase .moment dl > div:last-child { margin-bottom: 0; }
/* The captures carry the macOS window shadow (56 px each side of 1352): bleed it so the window lines up with the text */
.shot { display: block; width: 109.03%; max-width: none; height: auto; margin: -2% -4.52%; }

/* What goes over the network */
.netlog { list-style: none; border-top: 2px solid var(--ink); }
.netlog li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 6fr);
  gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.netlog .step, .netlog .dest { font-weight: 600; }
.netlog .dest.none { color: var(--ok); }
.netlog .why { color: var(--ink-2); font-size: 15.5px; }
.netlog .netlog-head { padding: 10px 0; font-size: 13px; color: var(--ink-2); }

.contexts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; }
.contexts p { color: var(--ink-2); font-size: 16px; }

/* Pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.price { padding: 28px 40px 8px 0; }
.price + .price { padding-left: 40px; border-left: 1px solid var(--rule); }
.price h3 { font: 700 21px var(--display); }
.amount { font: 800 56px/1 var(--display); letter-spacing: -0.03em; margin: 14px 0 6px; }
.amount small { font-size: 21px; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.amount s { color: var(--ink-2); font-weight: 600; font-size: 34px; margin-right: 10px; text-decoration-thickness: 3px; }
.price .terms { color: var(--ink-2); margin-bottom: 18px; }
.price ul { padding-left: 1.1em; }
.price li { margin: 4px 0; }
.price .act { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.price .note { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.promo-code { font: 600 15px var(--mono); background: var(--marker); padding: 0 4px; }

/* Launch offer elements follow the state of the offer */
html:not(.promo-active) .promo-only,
html.promo-active .no-promo { display: none; }

/* Roadmap */
.next { list-style: none; border-top: 2px solid var(--ink); max-width: 860px; }
.next li {
  display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.next .state { color: var(--ink-2); font-size: 15px; padding-top: 1px; }
.next .state.shipped { color: var(--ok); }
.next p { color: var(--ink-2); font-size: 16px; }

/* Install */
.install { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 14px; padding-left: 4px; }
.steps li::marker { font-weight: 700; }
.specs { border-top: 2px solid var(--ink); font-size: 15.5px; }
.specs div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--ink-2); }

/* FAQ */
.faq { max-width: 860px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; max-width: 42em; }

/* Newsletter and footer */
.letter { margin-bottom: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.letter p { font-weight: 600; }
.letter form { display: flex; gap: 8px; flex-wrap: wrap; }
.letter input {
  font: 16px var(--sans); color: var(--ink);
  width: 280px; height: 40px; padding: 0 12px;
  border: 1px solid #b9bfc9; border-radius: 7px; background: var(--window);
}
.letter .button { height: 40px; font-size: 15px; padding: 0 16px; }
.letter .status { width: 100%; font-size: 14px; color: var(--ink-2); }
.letter .status.error { color: #b3261e; }

footer { padding: 40px 0 64px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 14px; }
footer a { color: var(--ink-2); }
footer .legal { max-width: 46em; font-size: 13px; }

/* ---------- Document pages: legal texts and release notes ---------- */
.page { padding-top: calc(var(--bar) + 56px); padding-bottom: 96px; }
.page .window { max-width: 860px; margin: 0 auto; }
.page-body {
  padding: 40px 56px 56px;
  font-family: var(--serif);
  font-size: 17px; line-height: 1.65;
}
.page-body h1 {
  font: 800 clamp(32px, 4vw, 44px)/1.08 var(--display);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.page-body .updated { font: 14px var(--sans); color: var(--ink-2); margin-bottom: 40px; }
.page-body section { margin-bottom: 36px; }
.page-body h2 { font: 700 21px/1.3 var(--display); letter-spacing: -0.01em; margin: 0 0 12px; }
.page-body h3 { font: 650 16px/1.35 var(--sans); margin: 22px 0 8px; }
.page-body p, .page-body ul, .page-body ol { margin-bottom: 14px; max-width: 40em; }
.page-body ul, .page-body ol { padding-left: 1.2em; }
.page-body li { margin-bottom: 6px; }
.page-body strong { font-weight: 650; }
.page-body code { font-size: 0.85em; background: #f1f2f5; padding: 1px 4px; border-radius: 4px; }

/* Release notes: one entry per version */
.rn-entry { border-top: 1px solid #eceef1; padding-top: 32px; }
.rn-entry:first-of-type { border-top: 0; padding-top: 0; }
.rn-version { display: block; font: 600 14px var(--sans); color: var(--ink-2); margin-bottom: 4px; }
.rn-entry h2 { font-size: 24px; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .hero, .install { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: calc(var(--bar) + 56px); }
  .moments, .contexts { grid-template-columns: 1fr; gap: 40px; }
  .showcase { gap: 56px; }
  .showcase-row, .showcase-row.is-flipped { grid-template-columns: 1fr; gap: 24px; }
  .showcase-row.is-flipped .shot { order: 1; }
  .netlog li { grid-template-columns: 1fr; gap: 4px; }
  .netlog .netlog-head { display: none; }
  .prices { grid-template-columns: 1fr; }
  .price + .price { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .block { padding: 72px 0; }
  .menubar .nav-item, .menubar .clock-date { display: none; }
  .notice { position: relative; top: auto; right: auto; width: auto; margin: calc(var(--bar) + 10px) 8px 0; }
  .notice:not([hidden]) + main .hero { padding-top: 40px; }
  .doc-body { padding: 22px 20px 26px; }
  .page { padding-top: calc(var(--bar) + 16px); }
  .page-body { padding: 28px 22px 36px; }
  .doc-foot { padding: 12px 20px; }
  .next li { grid-template-columns: 1fr; gap: 2px; }
  .letter input { width: 100%; }
}

/* Documentation pages: code blocks and tables */
.page-body pre { background: #f1f2f5; border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.page-body pre code { background: none; padding: 0; font-size: inherit; }
.page-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font: 14px/1.5 var(--sans); }
.page-body th, .page-body td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #eceef1; }
.page-body th { font-weight: 650; }
