/* The start page (#landing), the "first, your document" screen (#start) and the install page
   (install.html): the extension's pastels, Sabi, Nunito for titles and Lexend for reading. Every class
   starts with lp- so nothing here meets the shared extension styles. */

.lp {
  --lp-bg: #f3f7fb;
  --lp-paper: #ffffff;
  --lp-tint: #f7fafd;
  --lp-ink: #1f2a37;
  --lp-ink-soft: #5b6a7d;
  --lp-line: #e1e8f0;
  --lp-blue: #5aa6e8;
  --lp-blue-soft: #d6ecff;
  --lp-user: #eaf4ff;
  --lp-user-line: #cfe3fb;
  --lp-lilac: #b07cd8;
  --lp-pink-soft: #f2d8f3;
  --lp-peach-soft: #fde9c8;
  --lp-mint-soft: #d9f2e4;
  --lp-mark: #e2abe280;
  --lp-under: #000000;
  --lp-cite: #fff3a6;
  --lp-display: "Nunito", system-ui, sans-serif;
  --lp-read: "StudyBuddy Lexend", "Nunito", system-ui, sans-serif;
  --lp-shadow: 0 24px 60px rgba(44, 62, 80, 0.14);
  --lp-shadow-sm: 0 8px 22px rgba(44, 62, 80, 0.1);
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-family: var(--lp-display);
  font-size: 16px;
  line-height: 1.55;
}

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

.lp h1,
.lp h2,
.lp h3 {
  text-wrap: balance;
  margin: 0;
  line-height: 1.12;
}

.lp p {
  margin: 0;
}

:where(.lp) button {
  font: inherit;
  color: inherit;
}

.lp :focus-visible {
  outline: 3px solid var(--lp-blue);
  outline-offset: 2px;
}

.lp-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.lp section[id] {
  scroll-margin-top: 16px;
}

/* ---------------------------------------------------------------- buttons that react */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, background-position 0.3s ease;
}

.lp-btn:hover {
  transform: translateY(-2px);
}

.lp-btn:active {
  transform: translateY(0) scale(0.98);
}

.lp-btn--dark {
  background: #2e4057;
  color: #ffffff;
}

.lp-btn--dark:hover {
  background: #3b5574;
  box-shadow: 0 10px 22px rgba(46, 64, 87, 0.3);
}

.lp-btn--soft {
  background: var(--lp-paper);
  color: var(--lp-ink);
  border-color: var(--lp-line);
}

.lp-btn--soft:hover {
  border-color: var(--lp-blue);
  box-shadow: var(--lp-shadow-sm);
}

.lp-btn--grad {
  background: linear-gradient(90deg, #5aa6e8, #b07cd8, #5aa6e8);
  background-size: 200% 100%;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(122, 130, 220, 0.28);
}

.lp-btn--grad:hover {
  background-position: 100% 0;
  box-shadow: 0 14px 28px rgba(122, 130, 220, 0.4);
}

.lp-btn--big {
  font-size: 18px;
  padding: 15px 26px;
  border-radius: 16px;
}

.lp-btn--round {
  border-radius: 999px;
}

/* The start page's links in the top bar (only on the start page) */
.lp-barnav {
  display: none;
  background: none;
  align-items: center;
  gap: 2px;
}

body[data-screen="landing"] .lp-barnav {
  display: flex;
}

.lp-barlink {
  border: none;
  background: none;
  padding: 8px 12px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: #5b6a7d;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.lp-barlink:hover {
  color: #1f2a37;
  background: #f0f6ff;
}

.lp-barnav .lp-btn {
  padding: 8px 16px;
  margin-left: 6px;
  font-size: 15px;
}

/* ---------------------------------------------------------------- the promise */

.lp-intro {
  padding-block: 46px 34px;
  display: grid;
  gap: 18px;
  justify-items: start;
}

.lp-intro h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 15em;
}

.lp-hl {
  /* Each line of a wrapped highlight gets its own. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(transparent 60%, var(--lp-mark) 60%) no-repeat;
  background-size: 0% 100%;
  animation: lp-sweep 0.9s 0.35s ease forwards;
}

@keyframes lp-sweep {
  to {
    background-size: 100% 100%;
  }
}

.lp-lead {
  font-size: 19px;
  color: var(--lp-ink-soft);
  max-width: 36em;
}

.lp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.lp-note {
  font-size: 14px;
  color: var(--lp-ink-soft);
}

/* ---------------------------------------------------------------- the workspace to try */

.lp-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.lp-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-scene {
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.lp-scene:hover {
  transform: translateY(-2px);
  border-color: var(--lp-blue);
  box-shadow: var(--lp-shadow-sm);
}

.lp-scene[aria-pressed="true"] {
  background: var(--lp-blue-soft);
  border-color: var(--lp-blue);
}

.lp-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  padding: 7px 14px 7px 8px;
  position: relative;
}

.lp-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lp-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--lp-line);
  position: relative;
  flex: 0 0 auto;
  transition: background-color 0.2s;
}

.lp-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.lp-switch input:checked + .lp-track {
  background: var(--lp-lilac);
}

.lp-switch input:checked + .lp-track::after {
  transform: translateX(18px);
}

.lp-switch input:focus-visible + .lp-track {
  outline: 3px solid var(--lp-blue);
  outline-offset: 2px;
}

.lp-caption {
  font-size: 15px;
  color: var(--lp-ink-soft);
  margin-bottom: 14px;
  min-height: 1.6em;
}

.lp-caption b {
  color: var(--lp-ink);
}

.lp-shot {
  margin: 0 0 70px;
  border-radius: 22px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow);
  border: 1px solid var(--lp-line);
  overflow: hidden;
}

.lp-shot-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 13px;
  color: var(--lp-ink-soft);
}

.lp-dots {
  display: flex;
  gap: 6px;
}

.lp-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lp-line);
}

.lp-shot-doc {
  margin-left: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-shot-doc b {
  color: var(--lp-ink);
}

.lp-change {
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.lp-shot-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 300px;
  height: 440px;
}

.lp-shot.no-chat .lp-shot-grid {
  grid-template-columns: 200px minmax(0, 1fr);
}

.lp-shot.no-chat .lp-chat {
  display: none;
}

.lp-nav {
  border-right: 1px solid var(--lp-line);
  padding: 14px 10px;
  display: grid;
  align-content: start;
  gap: 2px;
  font-size: 13px;
}

.lp-nav-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
  margin: 10px 8px 4px;
}

.lp-nav-item {
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1.3;
  transition: background-color 0.2s;
}

.lp-nav-item.is-on {
  background: var(--lp-blue-soft);
  font-weight: 800;
}

.lp-main {
  padding: 22px 26px;
  background: var(--lp-tint);
  min-width: 0;
  overflow: auto;
}

.lp-page {
  background: var(--lp-paper);
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid var(--lp-line);
  font-family: var(--lp-doc-font, var(--lp-read));
  font-size: var(--lp-doc-size, 15px);
  line-height: 1.85;
}

.lp-page h3 {
  font-family: var(--lp-display);
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 6px;
}

.lp-page h3 + p + h3 {
  margin-top: 14px;
}

.lp-page p + p {
  margin-top: 10px;
}

.lp mark {
  background: var(--lp-mark);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
  transition: background-color 0.3s;
}

.lp u {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--lp-under);
  transition: text-decoration-color 0.3s;
}

.lp-page strong {
  font-weight: 700;
  color: #000000;
}

/* Bold marks are black bold type, as everywhere in StudyBuddy. */
.lp-page strong,
.lp-ans strong,
.lp-about-text strong,
.lp-tool-text strong,
.lp-step-text strong {
  font-weight: 800;
  color: #000000;
}

/* How many highlights (Your style): A lot highlights more, Little shows fewer. */
.lp-extra {
  border-radius: 3px;
  transition: background-color 0.3s;
}

.lp-shot[data-amount="lots"] .lp-extra {
  background: var(--lp-mark);
}

.lp-shot[data-amount="little"] .lp-page u {
  text-decoration-color: transparent;
}

.lp-shot[data-amount="little"] .lp-page p:first-of-type strong:last-of-type {
  font-weight: 400;
  color: inherit;
}

/* Smart highlights off: none in the document or in the chat. */
.lp-shot.is-plain mark,
.lp-shot.is-plain .lp-extra {
  background: transparent !important;
  padding: 0;
}

.lp-shot.is-plain u {
  text-decoration-color: transparent !important;
}

.lp-shot.is-plain .lp-page strong,
.lp-shot.is-plain .lp-ans strong {
  font-weight: inherit;
  color: inherit;
}

/* Your style: the reading style's choices, where the chat is */
.lp-style {
  flex: 1;
  overflow: auto;
  padding: 10px 14px 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.lp-style .option-group {
  gap: 6px;
}

.lp-style .option-chip {
  font-size: 12px;
  padding: 5px 10px;
}

.lp-cite.is-on {
  background: var(--lp-cite);
  outline: 2px solid #f5d76e;
  border-radius: 4px;
}

.lp-sel {
  background: #b9dafc;
  border-radius: 2px;
}

/* The menu on selected text, as on the website */
.lp-selmenu {
  margin: 12px 0 0 32%;
  width: 200px;
  max-width: 100%;
  background: var(--lp-paper);
  border: 1px solid var(--lp-user-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.16);
  padding: 10px;
  display: grid;
  gap: 6px;
  font-family: var(--lp-display);
  font-size: 13px;
  animation: lp-pop 0.25s ease;
}

.lp-selaction {
  border: 1px solid var(--lp-user-line);
  background: var(--lp-user);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  transition: background-color 0.15s, transform 0.15s;
}

.lp-selaction:hover {
  background: var(--lp-blue-soft);
  transform: translateX(2px);
}

.lp-selaction i {
  font-style: normal;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lp-paper);
  border: 1px solid var(--lp-user-line);
}

@keyframes lp-pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
}

/* Sabi's chat, as on the website */
.lp-chat {
  border-left: 1px solid var(--lp-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  font-size: 13px;
}

.lp-chat-top {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px 8px;
  font-weight: 900;
  font-size: 14px;
}

.lp-gear {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lp-pink-soft);
  font-size: 13px;
}

.lp-reading {
  margin: 0 14px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--lp-tint);
  border: 1px solid var(--lp-line);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-strip {
  margin: 8px 14px 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--lp-mint-soft);
  font-size: 12px;
  font-weight: 800;
}

.lp-thread {
  flex: 1;
  overflow: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-user {
  align-self: flex-end;
  max-width: 88%;
  background: var(--lp-user);
  border: 1px solid var(--lp-user-line);
  padding: 8px 11px;
  border-radius: 16px;
}

.lp-context {
  display: block;
  font-size: 11px;
  color: var(--lp-ink-soft);
  margin-bottom: 3px;
}

.lp-ans {
  line-height: 1.6;
  animation: lp-pop 0.3s ease;
}

.lp-ans ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.lp-ans li + li {
  margin-top: 4px;
}

.lp-muted {
  color: var(--lp-ink-soft);
}

.lp-ref {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lp-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
  border: 0;
  padding: 0;
  margin-left: 3px;
  cursor: pointer;
  transition: transform 0.15s;
}

.lp-ref:hover {
  transform: scale(1.2);
}

.lp-found {
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
  padding: 8px 10px;
  animation: lp-pop 0.25s ease;
}

.lp-found small {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
  margin-bottom: 4px;
}

.lp-found p {
  border-left: 3px solid #f5d76e;
  background: var(--lp-cite);
  padding: 6px 8px;
  border-radius: 6px;
  font-style: italic;
  font-size: 12px;
}

.lp-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.lp-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-ink-soft);
  animation: lp-blink 1s infinite;
}

.lp-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.lp-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes lp-blink {
  50% {
    opacity: 0.25;
  }
}

.lp-tutor-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lp-tutor-btns button {
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.lp-tutor-btns button:hover {
  border-color: var(--lp-blue);
  transform: translateY(-1px);
}

.lp-chatbar {
  margin: 8px 14px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--lp-user-line);
  background: var(--lp-user);
  border-radius: 16px;
  padding: 6px 6px 6px 10px;
}

.lp-chatbar img {
  width: 22px;
}

.lp-chatbar span {
  flex: 1;
  min-width: 0;
  color: var(--lp-ink-soft);
  font-size: 12px;
}

.lp-chatbar b {
  border: 1px solid var(--lp-ink);
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 12px;
}

/* Quiz and flashcards, as on the website */
.lp-toolcard {
  background: var(--lp-paper);
  border-radius: 16px;
  border: 1px solid var(--lp-line);
  padding: 20px 22px;
  max-width: 620px;
  display: grid;
  gap: 12px;
}

.lp-count {
  font-size: 12px;
  font-weight: 900;
  color: var(--lp-ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--lp-line);
  overflow: hidden;
}

.lp-bar i {
  display: block;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #5aa6e8, #b07cd8);
}

.lp-q {
  font-size: 17px;
  font-weight: 800;
}

.lp-opt {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.lp-opt:hover:not(:disabled) {
  border-color: #b6d2ee;
  background: var(--lp-user);
  transform: translateX(2px);
}

.lp-opt:disabled {
  cursor: default;
}

.lp-letter {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--lp-tint);
  font-weight: 900;
  font-size: 13px;
}

.lp-opt.is-right {
  border-color: #4caf7d;
  background: var(--lp-mint-soft);
}

.lp-opt.is-wrong {
  border-color: #e07a7a;
  background: #fbe9e9;
}

.lp-why {
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--lp-mint-soft);
  font-size: 14px;
  animation: lp-pop 0.25s ease;
}

.lp-fc-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lp-fc-head .lp-btn {
  padding: 8px 14px;
  font-size: 13px;
}

.lp-fc-list {
  display: grid;
  gap: 8px;
}

.lp-fc {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.15s, transform 0.15s;
}

.lp-fc:hover {
  border-color: var(--lp-blue);
  transform: translateX(2px);
}

.lp-fc-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lp-blue-soft);
  font-size: 12px;
  font-weight: 900;
}

.lp-fc b {
  display: block;
  font-size: 14px;
}

.lp-fc span {
  font-size: 13px;
  color: var(--lp-ink-soft);
}

/* ---------------------------------------------------------------- the three cards */

.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 70px;
}

.lp-card {
  --tilt: 0deg;
  border-radius: 26px;
  padding: 22px;
  border: 2px solid var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
  display: grid;
  gap: 12px;
  align-content: start;
  transform: rotate(var(--tilt));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-card:nth-child(1) {
  background: var(--lp-blue-soft);
  --tilt: -1.2deg;
}

.lp-card:nth-child(2) {
  background: var(--lp-pink-soft);
  --tilt: 0.8deg;
}

.lp-card:nth-child(3) {
  background: var(--lp-mint-soft);
  --tilt: -0.6deg;
}

.lp-card h3 {
  font-size: 20px;
  font-weight: 900;
}

.lp-card > p {
  color: var(--lp-ink-soft);
}

.lp-card-demo {
  font-family: var(--lp-read);
  background: var(--lp-paper);
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.8;
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.lp-card-demo .lp-user,
.lp-card-demo .lp-ans,
.lp-card-demo .lp-mini {
  font-family: var(--lp-display);
  font-size: 13px;
}

.lp-mini {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
}

.lp-mini.is-right {
  border-color: #4caf7d;
  background: var(--lp-mint-soft);
}

.lp-mini .lp-letter {
  flex-basis: 22px;
  height: 22px;
  font-size: 12px;
}

.lp-mini-q {
  font-family: var(--lp-display);
  font-weight: 800;
  font-size: 14px;
}

/* ---------------------------------------------------------------- tools */

.lp-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 22px;
}

.lp-block-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 900;
}

.lp-block-head p {
  color: var(--lp-ink-soft);
  max-width: 32em;
}

.lp-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 70px;
}

.lp-group {
  border-radius: 24px;
  padding: 20px;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--lp-line);
}

.lp-group--study {
  background: var(--lp-blue-soft);
}

.lp-group--docs {
  background: var(--lp-pink-soft);
}

.lp-group--other {
  background: var(--lp-peach-soft);
}

.lp-group h3 {
  font-size: 18px;
  font-weight: 900;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lp-tool {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s;
}

.lp-tool:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--lp-blue);
  box-shadow: var(--lp-shadow-sm);
}

.lp-tool:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.lp-tool-icon {
  font-size: 22px;
  flex: 0 0 auto;
  transition: transform 0.25s;
}

.lp-tool:hover:not(:disabled) .lp-tool-icon {
  transform: scale(1.15) rotate(-6deg);
}

.lp-tool-text {
  flex: 1;
  min-width: 0;
  display: grid;
}

.lp-tool-text b {
  font-weight: 800;
}

.lp-tool-text small {
  color: var(--lp-ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.lp-tool-go {
  font-weight: 900;
  color: var(--lp-blue);
  font-size: 18px;
  transition: transform 0.18s, color 0.18s;
}

.lp-tool:hover:not(:disabled) .lp-tool-go {
  transform: translateX(3px);
  color: var(--lp-lilac);
}

.lp-soon {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lp-line);
  color: var(--lp-ink-soft);
}

/* ---------------------------------------------------------------- extension */

.lp-ext {
  border-radius: 30px;
  background: linear-gradient(120deg, var(--lp-blue-soft), var(--lp-pink-soft));
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 70px;
}

.lp-ext h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 900;
}

.lp-ext-text {
  margin-top: 10px;
  color: var(--lp-ink-soft);
}

.lp-ext .lp-row {
  margin-top: 18px;
}

.lp-panel {
  background: var(--lp-paper);
  border-radius: 20px;
  box-shadow: var(--lp-shadow);
  font-size: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.lp-panel:hover {
  transform: translateY(-4px) rotate(0.5deg);
}

.lp-panel-top {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 12px 6px;
}

.lp-panel-top .lp-gear {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.lp-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lp-pink-soft);
  color: #8a55b5;
}

.lp-panel .lp-thread {
  padding: 10px 12px;
}

/* ---------------------------------------------------------------- about */

.lp-about {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--lp-paper);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--lp-shadow-sm);
  margin-bottom: 60px;
}

.lp-photo {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
  background: conic-gradient(from 200deg, #d6ecff, #f2d8f3, #fde9c8, #d9f2e4, #d6ecff);
  transition: transform 0.4s ease;
}

.lp-photo:hover {
  transform: rotate(-4deg) scale(1.03);
}

.lp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  display: block;
  border: 4px solid var(--lp-paper);
}

.lp-kicker {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-lilac);
}

.lp-about h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 900;
  margin-top: 4px;
}

.lp-role {
  color: var(--lp-lilac);
  font-weight: 800;
  margin-top: 4px;
}

.lp-about-text {
  display: grid;
  gap: 10px;
  color: var(--lp-ink-soft);
  margin-top: 12px;
  max-width: 38em;
}

.lp-about .lp-row {
  margin-top: 18px;
}

.lp-footer {
  border-top: 1px solid var(--lp-line);
  padding-block: 24px 40px;
  font-size: 14px;
  color: var(--lp-ink-soft);
}

.lp-footer .lp-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.lp-footer a {
  color: inherit;
  font-weight: 800;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- first, your document */

.lp-start {
  flex: 1;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding-block: 32px;
}

.lp-start-card {
  width: min(640px, 100%);
  background: var(--lp-paper);
  border-radius: 30px;
  box-shadow: var(--lp-shadow);
  padding: 34px;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  animation: lp-pop 0.35s ease;
}

.lp-start-owl {
  width: 110px;
  animation: lp-float 4s ease-in-out infinite;
}

@keyframes lp-float {
  50% {
    transform: translateY(-6px);
  }
}

.lp-start-card h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
}

.lp-start-for {
  font-weight: 800;
  color: var(--lp-lilac);
}

.lp-start-card > p {
  color: var(--lp-ink-soft);
}

.lp-drop {
  width: 100%;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 26px 20px;
  border: 2.5px dashed #9fc7ee;
  border-radius: 22px;
  background: var(--lp-tint);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background-color 0.15s;
}

.lp-drop:hover,
.lp-drop.is-over {
  transform: translateY(-2px);
  border-color: var(--lp-lilac);
  background: #fbf3fc;
}

.lp-drop-icon {
  font-size: 34px;
}

.lp-drop strong {
  font-size: 18px;
  font-weight: 900;
}

.lp-drop small {
  color: var(--lp-ink-soft);
}

.lp-done {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--lp-mint-soft);
  font-weight: 800;
  text-align: left;
}

.lp-done span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--lp-ink-soft);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-link:hover {
  color: var(--lp-ink);
}

.lp-pick {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

.lp-error {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fbe9e9;
  color: #8a2d2d;
  font-weight: 700;
  font-size: 14px;
}

/* ---------------------------------------------------------------- appearing while scrolling */

.lp-js .lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.lp-js .lp-reveal.is-in {
  opacity: 1;
  transform: none;
}

.lp-js .lp-card.lp-reveal.is-in {
  transform: rotate(var(--tilt));
}

.lp-card:hover,
.lp-js .lp-card.lp-reveal.is-in:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--lp-shadow);
}

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 1000px) {
  .lp-barlink {
    display: none;
  }

  .lp-shot-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .lp-shot.no-chat .lp-shot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-nav {
    display: none;
  }

  .lp-cards,
  .lp-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-card,
  .lp-js .lp-card.lp-reveal.is-in {
    --tilt: 0deg;
  }
}

@media (max-width: 720px) {
  .lp-shot-grid {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .lp-main {
    max-height: 380px;
  }

  .lp-chat {
    border-left: 0;
    border-top: 1px solid var(--lp-line);
    height: 340px;
  }

  .lp-ext,
  .lp-about {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-ext {
    padding: 24px 18px;
  }

  .lp-photo {
    width: 150px;
  }

  .lp-pick {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-start-card {
    padding: 24px 18px;
  }

  .lp-barnav .lp-btn {
    display: none;
  }
}

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

  .lp-js .lp-reveal {
    opacity: 1;
    transform: none;
  }

  .lp-hl {
    background-size: 100% 100%;
  }
}

.lp-start[hidden],
.landing[hidden] {
  display: none;
}

/* ---------------------------------------------------------------- install page */

/* The shared extension stylesheet keeps the side panel from scrolling (html, body at 100% height,
   overflow hidden); the install page is an ordinary page that scrolls. */
html:has(body.lp-install),
body.lp-install {
  height: auto;
}

body.lp-install {
  margin: 0;
  min-height: 100vh;
  overflow: visible;
}

.lp-install-top .lp-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 19px;
  color: var(--lp-ink);
  text-decoration: none;
}

.lp-brand img {
  width: 34px;
  transition: transform 0.3s ease;
}

.lp-brand:hover img {
  transform: rotate(-10deg) scale(1.08);
}

.lp-install-top .lang-picker {
  margin-left: auto;
}

.lp-install-head {
  padding-block: 30px 26px;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.lp-install-head h1 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0 0 40px;
  display: grid;
  gap: 22px;
  counter-reset: step;
}

.lp-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--lp-shadow-sm);
}

.lp-step-text {
  display: grid;
  gap: 10px;
  align-content: start;
}

.lp-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #5aa6e8, #b07cd8);
}

.lp-step-num::before {
  content: counter(step);
}

.lp-step h2 {
  font-size: 22px;
  font-weight: 900;
}

.lp-step p {
  color: var(--lp-ink-soft);
}

.lp-step code {
  font-size: 14px;
  background: var(--lp-blue-soft);
  color: var(--lp-ink);
  padding: 2px 8px;
  border-radius: 8px;
  user-select: all;
}

.lp-step-pic {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--lp-line);
  background: var(--lp-tint);
  box-shadow: 0 6px 18px rgba(44, 62, 80, 0.08);
}

.lp-zoom {
  display: block;
  cursor: zoom-in;
}

.lp-zoom img {
  transition: transform 0.25s ease;
}

.lp-zoom:hover img {
  transform: scale(1.02);
}

.lp-step-pic img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-step-pic--narrow {
  max-width: 340px;
  justify-self: center;
}

.lp-done-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 24px;
  margin-bottom: 50px;
  border-radius: 26px;
  background: var(--lp-mint-soft);
}

.lp-done-card img {
  width: 70px;
}

.lp-done-card div {
  flex: 1 1 260px;
  display: grid;
  gap: 6px;
}

.lp-done-card h2 {
  font-size: 24px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .lp-step {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
}

/* ---------------------------------------------------------------- everything StudyBuddy can do */

.lp-more {
  display: flex;
  justify-content: center;
  margin: -40px 0 70px;
}

.lp-features .lp-install-top .lp-wrap {
  gap: 14px;
}

.fx-top-start {
  margin-left: auto;
  padding: 8px 16px;
  font-size: 15px;
}

.lp-features .lp-install-top .lang-picker {
  margin-left: 0;
}

.lp-features h1 {
  max-width: 18em;
}

.fx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.fx-tabs a {
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
  font-size: 14px;
  color: var(--lp-ink);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.fx-tabs a:hover {
  transform: translateY(-2px);
  border-color: var(--lp-blue);
  box-shadow: var(--lp-shadow-sm);
}

.fx-section {
  padding-block: 26px 10px;
  scroll-margin-top: 10px;
}

.fx-section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  margin-bottom: 18px;
}

.fx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.fx-card {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  box-shadow: var(--lp-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.fx-card:hover,
.lp-js .fx-card.lp-reveal.is-in:hover {
  transform: translateY(-3px);
  border-color: #c9dcf0;
  box-shadow: var(--lp-shadow);
}

.fx-card--wide {
  grid-column: span 2;
}

.fx-card h3 {
  font-size: 18px;
  font-weight: 900;
}

.fx-card > p {
  color: var(--lp-ink-soft);
}

.fx-card strong,
.fx-page strong,
.fx-site-page strong {
  font-weight: 800;
  color: #000000;
}

.fx-demo {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border-radius: 16px;
  background: var(--lp-tint);
  border: 1px dashed #cfdcea;
  min-width: 0;
}

.fx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fx-chip {
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background-color 0.15s;
}

.fx-chip:hover {
  transform: translateY(-1px);
  border-color: var(--lp-blue);
}

.fx-chip[aria-pressed="true"] {
  background: var(--lp-pink-soft);
  border-color: var(--lp-lilac);
}

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

.fx-row .lp-btn,
.fx-demo > .lp-btn {
  justify-self: start;
  padding: 8px 16px;
  font-size: 14px;
}

.fx-page {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--lp-read);
  font-size: 14px;
  line-height: 1.8;
  transition: font-size 0.2s ease;
}

.fx-page h4 {
  margin: 0 0 4px;
  font-family: var(--lp-display);
  font-size: 16px;
  font-weight: 900;
}

.fx-page p + p {
  margin-top: 8px;
}

/* The Original view: as the file looks (a PDF page) */
.fx-page.is-original {
  position: relative;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 13px;
  line-height: 1.5;
  padding: 26px 28px 20px;
  box-shadow: 0 6px 18px rgba(44, 62, 80, 0.12);
}

.fx-page.is-original h4 {
  font-family: Georgia, serif;
  font-weight: 700;
}

.fx-page-label {
  position: absolute;
  top: 6px;
  right: 10px;
  font-family: var(--lp-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--lp-ink-soft);
}

.fx-aloud span {
  border-radius: 4px;
  transition: background-color 0.15s;
}

.fx-aloud .is-reading {
  background: #ffe58a;
}

.fx-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.fx-contents {
  display: grid;
  gap: 4px;
  align-content: start;
}

.fx-contents button {
  text-align: left;
  border: 0;
  background: none;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.fx-contents button:hover,
.fx-contents button.is-on {
  background: var(--lp-blue-soft);
}

.fx-contents-doc {
  max-height: 150px;
  overflow: auto;
  position: relative;
}

.fx-contents-doc h4 {
  transition: background-color 0.3s;
}

.fx-contents-doc h4.is-target {
  background: var(--lp-mark);
  border-radius: 4px;
}

.fx-zoom {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: var(--lp-paper);
  overflow: hidden;
}

.fx-zoom button {
  border: 0;
  background: none;
  width: 36px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
}

.fx-zoom button:hover {
  background: var(--lp-blue-soft);
}

.fx-zoom span {
  min-width: 56px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
}

.fx-strip {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--lp-mint-soft);
  font-size: 13px;
  font-weight: 800;
}

.fx-msg {
  font-size: 14px;
}

.fx-next {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  font-size: 14px;
}

.fx-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 16px;
}

.fx-option {
  display: grid;
  gap: 6px;
}

.fx-option-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--lp-ink-soft);
}

.fx-summary,
.fx-chat,
.fx-pre {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  font-size: 14px;
}

.fx-q {
  font-weight: 800;
}

.fx-input {
  flex: 1 1 200px;
  min-width: 0;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--lp-paper);
}

.fx-input:focus {
  outline: 3px solid var(--lp-blue-soft);
  border-color: var(--lp-blue);
}

.fx-cardlist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.fx-count {
  font-weight: 900;
  font-size: 13px;
  margin-right: 4px;
}

.fx-mini-card {
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  font-size: 13px;
  font-weight: 700;
  animation: lp-pop 0.3s ease backwards;
  animation-delay: calc(var(--i) * 0.05s);
}

.fx-edit [contenteditable] {
  border-radius: 6px;
  outline: none;
  padding: 1px 4px;
  margin: -1px -4px;
  cursor: text;
}

.fx-edit [contenteditable]:hover,
.fx-edit [contenteditable]:focus {
  background: var(--lp-blue-soft);
}

.fx-pre {
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-x: auto;
}

.fx-table {
  display: grid;
  gap: 6px;
}

.fx-tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  font-size: 14px;
  animation: lp-pop 0.25s ease;
}

.fx-tr.is-yes b {
  color: #2f8a5c;
}

.fx-tr.is-no {
  color: var(--lp-ink-soft);
}

.fx-tr.is-no b {
  color: #c45b5b;
}

.fx-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-chat ul,
.fx-chat ol {
  margin: 4px 0 0;
  padding-left: 20px;
}

.fx-site {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
}

.fx-site-bar {
  padding: 6px 10px;
  background: #eef1f5;
  font-size: 12px;
  color: var(--lp-ink-soft);
}

.fx-site-page {
  padding: 12px 14px;
  font-family: var(--lp-read);
  font-size: 14px;
  line-height: 1.8;
}

.fx-site-page h4 {
  margin: 0 0 4px;
  font-family: var(--lp-display);
  font-weight: 900;
}

/* Smart reading off: the website keeps its own look, no highlights */
.fx-site.is-off .fx-site-page {
  font-family: "Times New Roman", Georgia, serif;
  line-height: 1.45;
}

.fx-site.is-off mark {
  background: transparent;
}

.fx-site.is-off u {
  text-decoration-color: transparent;
}

.fx-site.is-off strong {
  font-weight: 400;
  color: inherit;
}

.fx-popup {
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow-sm);
}

.fx-popup-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fx-popup-head img {
  width: 28px;
}

.fx-split--site {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
}

.fx-site .lp-selmenu {
  margin: 10px 0 0 auto;
}

.fx-bubble-site {
  min-height: 170px;
}

.fx-bubble {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #5aa6e8, #b07cd8);
  box-shadow: 0 8px 18px rgba(122, 130, 220, 0.4);
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}

.fx-bubble:active {
  cursor: grabbing;
}

.fx-bubble img {
  width: 30px;
  pointer-events: none;
}

/* Little / Medium / A lot: t-std shows from Medium, t-extra only with A lot */
.fx-amount mark,
.fx-amount u,
.fx-amount strong {
  transition: background-color 0.3s, text-decoration-color 0.3s;
}

.fx-amount[data-amount="little"] mark.t-std,
.fx-amount[data-amount="little"] mark.t-extra,
.fx-amount[data-amount="medium"] mark.t-extra {
  background: transparent;
}

.fx-amount[data-amount="little"] u.t-std,
.fx-amount[data-amount="little"] u.t-extra,
.fx-amount[data-amount="medium"] u.t-extra {
  text-decoration-color: transparent;
}

.fx-amount[data-amount="little"] strong.t-std,
.fx-amount[data-amount="little"] strong.t-extra,
.fx-amount[data-amount="medium"] strong.t-extra {
  font-weight: 400;
  color: inherit;
}

.fx-ext-btns {
  margin-top: 18px;
}

.lp-features .lp-done-card {
  margin-top: 30px;
}

@media (max-width: 720px) {
  .fx-card--wide {
    grid-column: auto;
  }

  .fx-split,
  .fx-split--site {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-top-start {
    display: none;
  }
}

/* The extension on an iPad, a phone, Safari or Firefox (lib/device.js) */
.lp .ext-device-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  max-width: 560px;
  border-radius: 12px;
  background: #eaf4ff;
  border: 1px solid #cfe3fb;
  font-size: 15px;
  line-height: 1.5;
}

/* "Last updated: 22 October 2026" under the extension's download */
.lp .lp-ext-updated {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #5b6b7d;
}

/* The What's new page (whats-new.html) */
.lp-news-ext {
  display: grid;
  gap: 14px;
  margin: 8px 0 36px;
  padding: 22px 26px;
  border-radius: 22px;
  background: #fff8db;
  border: 1px solid #f0dc8f;
}

.lp-news-ext h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.lp-news-ext p {
  margin: 0;
  line-height: 1.55;
}

.lp-news-update {
  margin: 0 0 32px;
}

.lp-news-update h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.lp-news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-news-list li {
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e3eaf3;
  line-height: 1.5;
}

/* "What's new" in the top bar is a link, looking like the other items */
a.lp-barlink {
  text-decoration: none;
}

/* "Get started" on a phone: compact, and once the document is in, the tools come first (no owl or
   kicker), two to a row, so all of them fit on the screen. */
@media (max-width: 560px) {
  .lp-start {
    place-items: start center;
    padding-block: 12px;
  }

  .lp-start-card {
    padding: 18px 14px;
    gap: 10px;
    border-radius: 22px;
  }

  .lp-start-owl {
    width: 64px;
  }

  .lp-start-card h1 {
    font-size: 24px;
  }

  .lp-start-card:has(#startPick:not([hidden])) .lp-start-owl,
  .lp-start-card:has(#startPick:not([hidden])) .lp-start-for {
    display: none;
  }

  #startPick {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #startPick .lp-tool {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    min-height: 92px;
    padding: 12px 8px;
    text-align: center;
    font-size: 15px;
    line-height: 1.25;
  }

  #startPick .lp-tool-icon {
    font-size: 26px;
    margin: 0;
  }

  .lp-done {
    width: 100%;
  }
}

/* ---------------------------------------------------------------- Everything StudyBuddy can do: one
   block per tool (text and its 3 best things on the left, one example on the right), the rest under
   "See all it can do" */
.fx-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin: 26px 0;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(120deg, var(--lp-blue-soft), var(--lp-pink-soft));
  scroll-margin-top: 12px;
}

.fx-tool:nth-of-type(even) {
  background: linear-gradient(120deg, var(--lp-mint-soft), var(--lp-blue-soft));
}

.fx-tool--text {
  grid-template-columns: minmax(0, 1fr);
}

.fx-tool h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
}

.fx-tool-lead {
  margin-top: 8px;
  color: var(--lp-ink-soft);
}

.fx-points {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.fx-points li {
  position: relative;
  padding: 10px 14px 10px 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.fx-points li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 10px;
  font-weight: 900;
  color: #3f9a62;
}

.fx-tool .fx-ext-btns {
  margin-top: 18px;
}

.fx-tool-demo {
  background: var(--lp-paper);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--lp-shadow-sm);
}

.fx-more {
  grid-column: 1 / -1;
}

.fx-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.fx-more summary::-webkit-details-marker {
  display: none;
}

.fx-more summary::after {
  content: "▾";
  transition: transform 0.2s;
}

.fx-more[open] summary::after {
  transform: rotate(180deg);
}

.fx-more summary:hover {
  border-color: var(--lp-blue);
}

.fx-more .fx-grid {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .fx-tool {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 16px;
    gap: 18px;
    border-radius: 24px;
  }

  .fx-more .fx-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
