/* The start page (#landing), the "first, your document" screen (#start) and the install page
   (install.html): the extension's pastels, Whalia, 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: max(1px, 0.07em);
  text-underline-offset: 0.22em;
  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;
  color: #7d6fd0;
  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);
  }
}

/* Whalia'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: 900 11px/1 Georgia, "Times New Roman", serif;
  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(2, 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:nth-child(4) {
  background: var(--lp-peach-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(28px, 3.6vw, 38px);
  font-weight: 900;
  margin-bottom: 12px;
}

.lp-ext-text {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.6;
  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;
}

/* ---------------------------------------------------------------- research */

.lp-research {
  margin-bottom: 60px;
}

.lp-research h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 900;
  margin: 4px 0 18px;
}

.lp-research-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.lp-paper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.lp-paper:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow);
}

.lp-paper--soon {
  background: linear-gradient(120deg, var(--lp-blue-soft), var(--lp-pink-soft));
}

.lp-paper-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lp-pink-soft);
  color: #8a55b5;
}

.lp-paper--soon .lp-paper-tag {
  background: var(--lp-paper);
}

.lp-paper-title {
  font-size: 18px;
  line-height: 1.35;
}

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

.lp-paper-link {
  margin-top: auto;
  font-weight: 800;
  color: var(--lp-lilac);
}

/* ---------------------------------------------------------------- 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;
  grid-template-columns: minmax(0, 1fr); /* a long file name wraps instead of widening the card */
  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-wrap: anywhere;
}

.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);
  }
}

/* The extension, right under Get started, and in the top bar */
.lp-hero-ext {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow);
  width: fit-content;
  max-width: 100%;
  font-weight: 700;
}

.lp-hero-ext .lp-btn {
  padding-block: 8px;
}

.lp-hero-ext-how {
  color: #2e4057;
  font-weight: 700;
}

.lp-barlink--ext {
  background: #eef5ff;
  color: #1f4f86;
}

/* Phones and tablets: the start page's links (hidden in the bar) are in a menu under ☰ */
@media (max-width: 1000px) {
  body[data-screen="landing"] .nav-toggle {
    display: inline-flex;
  }

  body[data-screen="landing"].lp-menu-open .lp-barnav {
    position: fixed;
    top: 64px;
    left: 8px;
    right: 8px;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(44, 62, 80, 0.22);
    /* Short phones and the signed-in account options: the menu scrolls instead of running off the screen. */
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body[data-screen="landing"].lp-menu-open .lp-barnav .lp-barlink,
  body[data-screen="landing"].lp-menu-open .lp-barnav .lp-btn {
    display: block;
    margin: 0;
    padding: 12px 14px;
    text-align: left;
    font-size: 16px;
  }

  body[data-screen="landing"].lp-menu-open .lp-barnav .lp-btn {
    margin-top: 6px;
    text-align: center;
  }
}

/* The 4 cards: 2 × 2, on tablets too (one column on phones). */
@media (max-width: 1100px) and (min-width: 721px) {
  .lp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* "Make it yours": a word in each of your marks, and a definition kept with 📌. */
.lp-card-demo--marks mark.lp-own {
  background: #fff176;
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.lp-card-demo--marks mark.lp-own--green {
  background: #b9f6ca;
}

/* The formatting row, as in the Reader: 🖍 (with its colour), B, U, 💬. */
.lp-fmt-row {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.lp-fmt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  justify-content: center;
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  background: var(--lp-paper);
  font-size: 13px;
}

.lp-fmt-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #fff176;
}

/* 📌 Important definitions, as the real box looks: a yellow title bar and the word with its meaning. */
.lp-defbox {
  margin-top: 10px;
  border: 1px solid #ecd98a;
  border-radius: 12px;
  overflow: hidden;
  background: #fffdf3;
  font-size: 13px;
  text-align: left;
}

.lp-defbox-head {
  padding: 6px 10px;
  background: #fff4cc;
  font-weight: 800;
  color: #4a3d0a;
}

.lp-defbox-item {
  display: grid;
  gap: 1px;
  padding: 7px 10px;
  color: #2e4057;
}

.lp-defbox-item b {
  color: #1f2a37;
}

/* In the demo: it appears under the page when a word is added. */
.lp-defbox--demo {
  max-width: 320px;
  margin: 14px 0 0 auto;
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.14);
  animation: lp-pop 0.25s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .lp-defbox--demo {
    animation: none;
  }
}

/* The demo window's 🍅 and its card */
.lp-shot {
  position: relative;
}

.lp-shot-timer {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  border-radius: 10px;
  padding: 3px 8px;
  font: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.lp-shot-timer:hover {
  border-color: #f2b8b2;
}

.lp-timer-card {
  position: absolute;
  z-index: 5;
  top: 46px;
  right: 12px;
  width: 220px;
  background: #c95b52;
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 14px 30px rgba(31, 42, 55, 0.25);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.lp-timer-card[hidden] {
  display: none;
}

.lp-timer-mode {
  font-size: 13px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.18);
  padding: 3px 10px;
  border-radius: 8px;
}

.lp-timer-time {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lp-timer-go {
  border: 0;
  background: #fff;
  color: #c95b52;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  padding: 7px 24px;
  border-radius: 10px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.lp-timer-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.95;
}

/* 🍅 in Others: information, not a button. */
.lp-tool--info {
  cursor: default;
}

.lp-tag {
  background: #fdecea;
  color: #a5352b;
}

/* The demo's diagram: a concept map of the example document (a root box, three branches with their
   linking words); a click on a box shows its passage in the chat. */
.lp-dg {
  display: grid;
  gap: 16px;
}

.lp-dg-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.lp-dg-kinds span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
}

.lp-dg-kinds span.is-on {
  background: var(--lp-lilac, #f3ecfc);
  border-color: #d9c6f2;
  font-weight: 800;
}

.lp-dg-map {
  display: grid;
  justify-items: center;
  gap: 0;
}

.lp-dg-node {
  border: 2px solid #8fb8e6;
  background: #eaf3fd;
  color: #1f2a37;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  max-width: 100%;
}

.lp-dg-node:hover,
.lp-dg-node.is-on {
  border-color: #3f8fd6;
  background: #d6ecff;
}

.lp-dg-root {
  font-size: 16px;
  padding: 10px 18px;
  background: #3f8fd6;
  border-color: #3f8fd6;
  color: #fff;
}

.lp-dg-root:hover,
.lp-dg-root.is-on {
  background: #2f7cc2;
  color: #fff;
}

.lp-dg-kids {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  position: relative;
  padding-top: 18px;
  border-top: 2px solid #b9d3ef;
  margin-top: 18px;
}

.lp-dg-branch {
  display: grid;
  justify-items: center;
  gap: 6px;
  position: relative;
}

.lp-dg-branch::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  height: 18px;
  border-left: 2px solid #b9d3ef;
}

.lp-dg-link {
  font-size: 12px;
  font-style: italic;
  color: var(--lp-ink-soft);
}

/* Phones: the same map as a tree, the main idea at the top and a line from it to each of its boxes. */
@media (max-width: 640px) {
  .lp-dg-map {
    justify-items: start;
  }
  .lp-dg-kids {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: calc(100% - 22px);
    margin: 0 0 0 22px;
    padding-top: 12px;
    border-top: 0;
  }
  /* The trunk, down to the middle of the last box */
  .lp-dg-kids::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 22px;
    left: 0;
    border-left: 2px solid #b9d3ef;
  }
  .lp-dg-branch {
    justify-items: start;
    gap: 2px;
    padding-left: 24px;
  }
  /* A branch to each box */
  .lp-dg-branch::before {
    top: auto;
    bottom: 21px;
    left: 0;
    width: 20px;
    height: 0;
    border-left: 0;
    border-top: 2px solid #b9d3ef;
  }
  .lp-dg-node {
    text-align: left;
  }
}

/* ---------------------------------------------------------------- made for dyslexia, for everyone */

/* The badge above the title: in Lexend, with a smart highlight, as the tools show text */
.lp-for-all {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.lp-for-all-badge {
  padding: 7px 16px;
  border-radius: 18px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
  font-family: var(--lp-read);
  font-size: 15px;
  letter-spacing: 0.02em;
  word-spacing: 0.08em;
  color: var(--lp-ink);
}

.lp-for-all-badge mark {
  background: var(--lp-mark);
  color: inherit;
  padding: 0 3px;
  border-radius: 4px;
}

.lp-for-all-why {
  font-weight: 800;
  font-size: 14px;
  color: var(--lp-lilac);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-for-all-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-for-all-points li {
  padding: 6px 13px;
  border-radius: 12px;
  background: var(--lp-tint);
  border: 1px solid var(--lp-line);
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-ink-soft);
}

.lp-paper-award {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lp-peach-soft);
  color: #8a5a12;
}

.lp-paper-authors {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-ink);
}

/* ---------------------------------------------------------------- the story page */

.lp-story-main {
  max-width: 760px;
  padding-block: 36px 60px;
}

.lp-story-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.lp-story-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--lp-shadow-sm);
  flex: none;
}

.lp-story-head h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lp-story-text {
  font-family: var(--lp-read);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--lp-ink);
}

.lp-story-text h2 {
  font-family: var(--lp-display);
  font-size: 22px;
  font-weight: 900;
  margin: 30px 0 8px;
}

.lp-story-text p {
  margin: 0 0 14px;
}

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

.lp-story-paper {
  margin: 18px 0 8px;
  font-family: var(--lp-display);
  line-height: 1.45;
}

.lp-story-love {
  margin-top: 22px !important;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--lp-blue-soft), var(--lp-pink-soft));
  font-weight: 700;
}

.lp-story-actions {
  margin-top: 30px;
}

@media (max-width: 560px) {
  .lp-story-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-story-text {
    font-size: 17px;
  }
}

/* The love letter, also in About on the start page */
.lp-about-love {
  margin: 16px 0 4px;
  font-family: var(--lp-read);
  font-size: 17px;
  line-height: 1.6;
  max-width: 34em;
}

.lp-story-intro {
  font-size: 19px;
}

/* The story's photo: big enough to see who's talking */
.lp-story-photo {
  width: 150px;
  height: 150px;
}

/* ---------------------------------------------------------------- the story page: green highlights, photos */

/* Its smart highlights are pastel green (the title's too) */
.lp-story {
  --lp-mark: #a8e2b880;
}

.lp-story-text mark {
  background: #b9ebc6;
}

.lp-story-text strong {
  font-weight: 800;
}

.lp-story-text u {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ✨ Highlights on / off, by the title */
.lp-story-hl {
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--lp-ink);
  cursor: pointer;
}

.lp-story-hl[aria-pressed="true"] {
  background: #dff5e5;
  border-color: #a8e2b8;
}

.lp-story--plain .lp-story-text mark,
.lp-story--plain .lp-story-head .lp-hl {
  background: none;
  padding: 0;
}

.lp-story--plain .lp-story-text p u {
  text-decoration: none;
}

.lp-story--plain .lp-story-text p strong {
  font-weight: inherit;
}

/* Photos: whole, never stretched; rounded like the rest of the site */
.lp-story-fig,
.lp-slide {
  margin: 18px 0 22px;
  font-family: var(--lp-display);
}

.lp-story-fig img,
.lp-slide img {
  display: block;
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--lp-shadow-sm);
  background: var(--lp-tint);
}

.lp-story-fig img {
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

.lp-story-fig--tall img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  margin-inline: auto;
}

.lp-story-fig figcaption,
.lp-slide figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--lp-ink-soft);
}

/* A slideshow: the same frame for every photo (portrait ones fit inside, whole) */
.lp-slides {
  margin: 18px 0 22px;
}

.lp-slides .lp-slide {
  margin: 0;
}

.lp-slides .lp-slide[hidden] {
  display: none;
}

.lp-slide img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: linear-gradient(120deg, var(--lp-blue-soft), var(--lp-pink-soft));
}

.lp-slides-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.lp-slides-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
  font-size: 22px;
  line-height: 1;
  color: var(--lp-ink);
  cursor: pointer;
}

.lp-slides-arrow:hover {
  background: var(--lp-tint);
}

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

.lp-slides-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--lp-line);
  cursor: pointer;
}

.lp-slides-dot[aria-current="true"] {
  background: var(--lp-lilac);
}

/* The story, second version: photos beside the text, smaller; the love letter at the top */
.lp-story-main > .lp-story-love {
  margin: 0 0 26px;
  font-family: var(--lp-read);
  font-size: 18px;
  line-height: 1.6;
}

.lp-story-text h2,
.lp-story-paper {
  clear: both;
}

/* The introduction's three photos: one small slideshow in the middle */
.lp-slides--intro {
  max-width: 440px;
  margin: 14px auto 8px;
}

/* A photo (or slideshow) beside the text, the text running around it */
.lp-story-side {
  float: right;
  width: min(290px, 44%);
  margin: 6px 0 14px 24px;
}

.lp-story-side--left {
  float: left;
  width: min(200px, 38%);
  margin: 6px 24px 14px 0;
}

.lp-story-side img,
.lp-story-side .lp-slide img {
  max-height: none;
  border-radius: 18px;
}

.lp-story-side figcaption {
  font-size: 13px;
}

.lp-story-side .lp-slides-arrow {
  width: 32px;
  height: 32px;
  font-size: 19px;
}

/* An underline is one unbroken line (not cut around g, p, y) */
.lp-story-text u,
.lp-about-text u,
.lp-story-love u {
  text-decoration-skip-ink: none;
}

/* A phone: the photos above their text, not beside it */
@media (max-width: 560px) {
  .lp-story-side,
  .lp-story-side--left {
    float: none;
    width: 100%;
    max-width: 340px;
    margin: 10px auto 16px;
  }
}

/* ✨ Highlights: an ON / OFF switch (like the extension's), green when on */
.lp-story-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  color: var(--lp-ink);
}

.lp-story-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.lp-story-switch-track {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d4dce6;
  transition: background-color 0.2s ease;
}

.lp-story-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(31, 42, 55, 0.25);
  transition: transform 0.2s ease;
}

.lp-story-switch input:checked + .lp-story-switch-track {
  background: #6fcf8c;
}

.lp-story-switch input:checked + .lp-story-switch-track .lp-story-switch-thumb {
  transform: translateX(22px);
}

.lp-story-switch input:focus-visible + .lp-story-switch-track {
  outline: 3px solid #8ec5ff;
  outline-offset: 2px;
}

/* The graduation photo beside the last part, cut a little top and bottom so it isn't so tall */
.lp-story-grad img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 40%;
}

/* Aa Text style: the reader's choices drive the story text */
.lp-story .lp-story-text,
.lp-story .lp-story-main > .lp-story-love {
  font-family: var(--story-font, var(--lp-read));
  font-size: var(--story-size, 18px);
  letter-spacing: var(--story-letter, 0.01em);
  word-spacing: var(--story-word, normal);
}

.lp-story .lp-story-text mark {
  background: var(--story-mark, #b9ebc6);
}

/* Smart highlights off: no highlight, underline or bold anywhere in the story (this comes after the
   colour above, so it wins). */
body.lp-story--plain .lp-story-text mark,
body.lp-story--plain .lp-story-main > .lp-story-love mark,
body.lp-story--plain .lp-story-head .lp-hl {
  background: none;
  padding: 0;
}
body.lp-story--plain .lp-story-text u,
body.lp-story--plain .lp-story-main > .lp-story-love u {
  text-decoration: none;
}
body.lp-story--plain .lp-story-text strong,
body.lp-story--plain .lp-story-main > .lp-story-love strong {
  font-weight: inherit;
}

.lp-story .lp-story-text h2,
.lp-story .lp-story-paper {
  font-family: var(--lp-display);
  letter-spacing: normal;
  word-spacing: normal;
}

.lp-story-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 10px;
}

.lp-story-controls .lp-story-switch {
  margin-top: 0;
}

.lp-story-style-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--lp-ink);
  cursor: pointer;
}

.lp-story-style-btn[aria-expanded="true"] {
  background: var(--lp-tint);
  border-color: var(--lp-lilac);
}

/* The style menu: a card under the title, like the tools' Aa panel */
.lp-story-style {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
}

.lp-story-style[hidden] {
  display: none;
}

.lp-story-style .option-label {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--lp-ink-soft);
}

/* A wide photo beside the text (landscape) */
.lp-story-side--wide {
  width: min(300px, 46%);
}

/* "Designed for dyslexic readers · Made for everyone": a label line above the title, like the
   sections' labels (WHO MADE STUDYBUDDY…), not a box */
.lp-for-all {
  margin: 0;
}

.lp-for-all-badge {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--lp-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  word-spacing: normal;
  text-transform: uppercase;
  color: var(--lp-lilac);
}

.lp-for-all-badge mark {
  background: none;
  padding: 0;
  color: inherit;
}

.lp-for-all-why {
  font-size: 13px;
  color: var(--lp-ink-soft);
}

/* The love letter under the three points: a quote, in the reading font */
.lp-hero-love {
  margin: 4px 0 2px;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--lp-lilac);
  max-width: 38em;
  font-family: var(--lp-read);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--lp-ink);
}

/* About: a line, the two buttons */
.lp-about .lp-about-text p {
  font-size: 18px;
}

/* Graduating: photo and text side by side (stacked on a phone) */
.lp-story-grad-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.lp-story-grad-row .lp-story-fig {
  margin: 6px 0 10px;
}

.lp-story-grad-row .lp-story-grad img {
  max-height: none;
  border-radius: 18px;
}

@media (max-width: 560px) {
  .lp-story-grad-row {
    grid-template-columns: 1fr;
  }
  .lp-story-grad-row .lp-story-grad {
    max-width: 260px;
    margin-inline: auto;
  }
}

/* (The love letter's answer, inside the quote, as the rest of it) */
.lp-hero-love strong {
  font-weight: inherit;
}

/* ---------------------------------------------------------------- start page, November 2026 layout */

/* The line under the top buttons: free, private, languages, phones */
.lp-trust {
  word-spacing: 0.08em;
}

/* Designed for dyslexia: three adaptations to try, who it is for */
.lp-forall {
  display: grid;
  gap: 18px;
  margin-block: 56px;
}

.lp-forall h2,
.lp-faq h2,
.lp-why-head h2,
.lp-final h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.lp-forall-sub {
  margin: -6px 0 0;
  font-size: 18px;
  color: var(--lp-ink-soft);
  max-width: 40em;
}

.lp-forall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}

.lp-try {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
}

.lp-try h3 {
  font-size: 18px;
  font-weight: 900;
}

.lp-try p {
  margin: 0;
  color: var(--lp-ink-soft);
}

.lp-try .lp-sample {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--lp-tint);
  color: var(--lp-ink);
  font-family: var(--lp-read);
  font-size: 16px;
  line-height: 1.6;
}

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

.lp-sample--font {
  font-family: "StudyBuddy OpenDyslexic", "OpenDyslexic", var(--lp-read) !important;
}

.lp-sample--space {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.12em;
  word-spacing: 0.3em;
}

/* The fonts card: its own font and size picker (only its sample changes) */
.lp-fontpick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lp-fontpick button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-ink);
  cursor: pointer;
}

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

.lp-fontpick button:disabled {
  opacity: 0.4;
  cursor: default;
}

.lp-fontpick .lp-size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.lp-fontpick .lp-size output {
  min-width: 34px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--lp-ink-soft);
}

.lp-fontpick .lp-size button {
  width: 30px;
  padding: 4px 0;
}

.lp-who-title {
  font-size: 20px;
  font-weight: 900;
  margin-top: 14px;
}

.lp-who {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-who li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  font-weight: 800;
  font-size: 15px;
}

/* Tools in two groups */
.lp-groups--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

/* The extension: a made-up website in a browser window, the side panel next to it */
.lp-ext--site {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: center;
}

.lp-browser {
  border-radius: 18px;
  overflow: hidden;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow);
  border: 1px solid var(--lp-line);
}

.lp-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #eef2f7;
  border-bottom: 1px solid var(--lp-line);
}

.lp-browser-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lp-paper);
  font-size: 12px;
  color: var(--lp-ink-soft);
}

.lp-browser-ext {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--lp-pink-soft);
  font-size: 15px;
}

.lp-browser-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.lp-site {
  padding: 18px 20px;
  /* The same reading text as the workspace example (and "Your style") */
  font-family: var(--lp-doc-font, var(--lp-read));
  font-size: var(--lp-doc-size, 15px);
  line-height: 1.75;
  color: var(--lp-ink);
  border-right: 1px solid var(--lp-line);
}

.lp-site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lp-line);
  font-family: var(--lp-display);
  font-size: 12px;
  color: var(--lp-ink-soft);
}

.lp-site-nav b {
  color: #2f7a4f;
  margin-right: auto;
}

.lp-site h4 {
  margin: 0 0 8px;
  font-family: var(--lp-display);
  font-size: 18px;
  font-weight: 900;
}

.lp-site p {
  margin: 0 0 10px;
}

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

.lp-site u,
.lp-sample u {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
}

.lp-browser .lp-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

@media (max-width: 860px) {
  .lp-ext--site {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lp-browser-body {
    grid-template-columns: 1fr;
  }
  .lp-site {
    border-right: none;
    border-bottom: 1px solid var(--lp-line);
  }
}

/* Why I built it: one heading over the research and About */
.lp-why-head {
  display: grid;
  gap: 6px;
  margin-top: 64px;
  margin-bottom: 18px;
}

/* Questions and answers */
.lp-faq {
  display: grid;
  gap: 10px;
  margin-block: 64px 30px;
  max-width: 820px;
}

.lp-q {
  border-radius: 18px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
  padding: 0 20px;
}

.lp-q summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 800;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lp-q summary::-webkit-details-marker {
  display: none;
}

.lp-q summary::after {
  content: "+";
  color: var(--lp-lilac);
  font-size: 22px;
  line-height: 1;
}

.lp-q[open] summary::after {
  content: "\2212";
}

.lp-q p {
  margin: 0 0 16px;
  color: var(--lp-ink-soft);
  line-height: 1.6;
}

/* The last Get started */
.lp-final {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  margin-block: 40px 70px;
  padding: 40px 20px;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--lp-blue-soft), var(--lp-pink-soft));
}

.lp-final p {
  color: var(--lp-ink-soft);
  margin: 0;
}

/* The demo's Flashcards: studying them here */
.lp-fcs {
  display: grid;
  gap: 12px;
}

.lp-fcs-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.lp-fcs-modes {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--lp-tint);
  border: 1px solid var(--lp-line);
  font-size: 12px;
  font-weight: 800;
}

.lp-fcs-modes span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--lp-ink-soft);
}

.lp-fcs-modes .is-on {
  background: var(--lp-paper);
  color: var(--lp-ink);
  box-shadow: var(--lp-shadow-sm);
}

.lp-fcs-progress {
  font-size: 13px;
  font-weight: 800;
  color: var(--lp-ink-soft);
}

.lp-fcs-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
  font: inherit;
  cursor: pointer;
  text-align: center;
  position: relative;
}

.lp-fcs-card.is-back {
  background: #fbfaff;
}

.lp-fcs-tag {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a9bb0;
}

.lp-fcs-text {
  font-family: var(--lp-doc-font, var(--lp-read));
  font-size: 20px;
  line-height: 1.5;
  color: var(--lp-ink);
}

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

.lp-fcs-ctrl {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
}

.lp-fcs-ctrl button {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.lp-fcs-ctrl [data-lp-know="no"] {
  color: #b4234a;
}

.lp-fcs-ctrl [data-lp-know="yes"] {
  color: #1d7a46;
}

.lp-fcs-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-ink-soft);
}

.lp-fcs-more .lp-btn {
  margin-left: auto;
}

/* The demo's Your style: the tools' "Aa Text & highlights" menu */
.lp-look {
  flex: 1;
  overflow: auto;
  padding: 10px 14px 14px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.lp-look-sec {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--lp-tint);
  border: 1px solid var(--lp-line);
}

.lp-look-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.lp-look-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lp-look-step button {
  min-width: 30px;
  padding: 4px 6px;
  border-radius: 9px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lp-look-step button:disabled {
  opacity: 0.4;
  cursor: default;
}

.lp-look-step output {
  min-width: 56px;
  text-align: center;
  font-size: 12px;
  color: var(--lp-ink-soft);
}

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

.lp-look .option-group {
  gap: 5px;
}

.lp-look .option-chip {
  font-size: 12px;
  padding: 4px 9px;
}

.lp-look-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.lp-look-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.lp-look-track {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #d4dce6;
  transition: background-color 0.2s;
}

.lp-look-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(31, 42, 55, 0.25);
  transition: transform 0.2s;
}

.lp-look-switch input:checked + .lp-look-track {
  background: linear-gradient(135deg, var(--lp-blue), var(--lp-lilac));
}

.lp-look-switch input:checked + .lp-look-track .lp-look-thumb {
  transform: translateX(16px);
}

.lp-look-switch input:focus-visible + .lp-look-track {
  outline: 3px solid #8ec5ff;
  outline-offset: 2px;
}

.lp-look-switch b {
  display: block;
  font-size: 13px;
}

.lp-look-switch small {
  display: block;
  font-size: 11px;
  color: var(--lp-ink-soft);
}

.lp-look-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.lp-look-bar button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  font: inherit;
  cursor: pointer;
}
.lp-look-bar .lp-look-read[aria-pressed='true'] {
  background: #f1e8fb;
  border-color: #c9b2ea;
}
/* The paragraph being read aloud in the example */
.lp-reading {
  background: #eef5ff;
  border-radius: 8px;
  box-shadow: 0 0 0 6px #eef5ff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* adaptations.html: every adaptation, three full-width sections */
.lp-adapt-page {
  max-width: 1100px;
  padding-block: 36px 70px;
}

.lp-adapt-page h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 6px 0 10px;
}

.lp-adapt-page .lp-lead {
  margin-bottom: 18px;
}

.lp-adapt-page .lp-story-switch {
  margin: 0 0 22px;
}

.lp-adapt {
  display: grid;
  gap: 22px;
}

.lp-adapt-group {
  padding: 26px 30px;
  border-radius: 24px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
}

.lp-adapt-group h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
}

.lp-adapt-group ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-adapt-group li {
  display: grid;
  gap: 3px;
}

.lp-adapt-group b {
  font-size: 16px;
}

.lp-adapt-group span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--lp-ink-soft);
}

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

.lp-adapt-page.is-plain mark {
  background: none;
  padding: 0;
}

.lp-adapt-page .lp-row {
  margin-top: 30px;
}

/* "Every mind, a different lens.": the line under it says who made it */
.lp-why-sub {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-ink-soft);
}

/* Meet Whalia: the owl, and who it is */
.lp-sabi {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-block: 56px 0;
  padding: 30px 34px;
  border-radius: 28px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm);
}

.lp-sabi-owl {
  width: 100%;
  height: auto;
}

.lp-sabi h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  margin: 4px 0 8px;
}

.lp-sabi-text p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--lp-ink-soft);
  max-width: 40em;
}

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

.lp-sabi-text ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

@media (max-width: 640px) {
  .lp-sabi {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 24px 20px;
  }
  .lp-sabi-owl {
    width: 150px;
  }
  .lp-sabi-text ul {
    justify-items: start;
    text-align: left;
  }
}

/* Hover: the three try-it cards and Whalia's card lift a little; Whalia tilts his magnifying glass */
.lp-try,
.lp-sabi {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-try:hover,
.lp-sabi:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow);
}

.lp-sabi-owl {
  transition: transform 0.35s ease;
  transform-origin: 50% 85%;
}

.lp-sabi:hover .lp-sabi-owl {
  transform: rotate(-6deg) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .lp-try,
  .lp-sabi,
  .lp-sabi-owl {
    transition: none;
  }
  .lp-try:hover,
  .lp-sabi:hover,
  .lp-sabi:hover .lp-sabi-owl {
    transform: none;
  }
}

/* The story page: wider, its text reaching out to the Whalia logo's edge like the top bar */
.lp-story-main {
  max-width: 1160px; /* the top bar's width: the text starts under the logo */
}

/* Its Aa Text & highlights menu: the tools' sections, side by side when there's room */
.lp-story-look {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: start;
}

.lp-story-look-title {
  grid-column: 1 / -1;
  font-weight: 900;
  font-size: 16px;
}

/* The start page's top bar: a little taller, Whalia bigger (the new owl is taller than wide) */
body[data-screen="landing"] .app-bar {
  height: 66px;
}

body[data-screen="landing"] .app-brand img {
  width: 46px;
  height: 46px;
}

body[data-screen="landing"] .app-brand-name {
  font-size: 19px;
}

/* (more links now: they hide a bit earlier, into the ☰ menu) */
@media (max-width: 1180px) {
  .lp-barlink {
    padding: 8px 9px;
    font-size: 14px;
  }
}

/* Links never wrap; on medium screens the slogan and the less needed links go first */
.lp-barlink,
.lp-barnav .lp-btn {
  white-space: nowrap;
}

@media (max-width: 1240px) {
  .lp-barnav a[href="whats-new.html"] {
    display: none;
  }
}

@media (max-width: 1120px) {
  .lp-barnav [data-lp-scroll="lpFaq"] {
    display: none;
  }
}

/* The slogan stays under Whalia: on medium screens the less needed links leave the bar first (they are
   all still in the page; below 1000px everything is in the ☰ menu). */
@media (max-width: 1400px) and (min-width: 1001px) {
  .lp-barnav a[href="whats-new.html"],
  .lp-barnav [data-lp-scroll="lpFaq"] {
    display: none;
  }
}
@media (max-width: 1200px) and (min-width: 1001px) {
  .lp-barnav [data-lp-scroll="lpWhy"] {
    display: none;
  }
}
@media (max-width: 1100px) and (min-width: 1001px) {
  .lp-barnav [data-lp-scroll="lpTools"] {
    display: none;
  }
}

/* Meet Whalia: how the smart highlights work (LARF) */
.lp-larf {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--lp-tint, #f2f7fd);
  border: 1px solid #e1e8f3;
  text-align: left;
}
.lp-larf-title {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}
.lp-larf p {
  margin: 0 0 10px;
  font-size: 15px;
}
.lp-larf .lp-larf-marks {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 15px;
}
.lp-larf-marks mark {
  background: var(--lp-mark);
  color: inherit;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
}
.lp-larf-marks strong {
  font-weight: 900;
}
.lp-larf-marks u {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}
.lp-larf-source {
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-ink-soft);
}

/* The hero: Whalia on the right, diving into a book, floating gently */
.lp-intro {
  position: relative;
}
.lp-hero-whale {
  position: absolute;
  top: 28px;
  right: 0;
  width: clamp(260px, 30vw, 400px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(90, 104, 181, 0.18));
  animation: lp-float 4.5s ease-in-out infinite;
  pointer-events: none;
}
@media (min-width: 901px) {
  .lp-intro > :not(.lp-hero-whale) {
    max-width: calc(100% - clamp(260px, 30vw, 400px) - 24px);
  }
}
@media (max-width: 900px) {
  .lp-hero-whale {
    position: static;
    order: -1;
    justify-self: center;
    width: 150px;
    margin-bottom: -6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero-whale {
    animation: none;
  }
}

/* How smart highlights work: its own card on the start page (after the workspace example) */
.lp-larf-section {
  margin: 8px 0 64px;
}
.lp-larf-section .lp-larf {
  margin: 0;
  padding: 26px 30px;
  border-radius: 26px;
  background: var(--lp-paper);
  border: 0;
  box-shadow: var(--lp-shadow-sm, 0 8px 24px rgba(44, 62, 80, 0.07));
}
.lp-larf-section .lp-larf-title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  margin-bottom: 10px;
}
.lp-larf-section .lp-larf p,
.lp-larf-section .lp-larf-marks {
  font-size: 17px;
  max-width: 46em;
}
@media (max-width: 640px) {
  .lp-larf-section .lp-larf {
    padding: 20px;
  }
}

/* Why a free account: five benefits and one button (hidden once logged in) */
.lp-account {
  margin: 8px 0 64px;
  display: grid;
  justify-items: start;
  gap: 18px;
}
.lp-account[hidden] {
  display: none;
}
.lp-account .lp-block-head {
  width: 100%;
  margin-bottom: 0;
}
.lp-account-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.lp-account-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-sm, 0 8px 24px rgba(44, 62, 80, 0.07));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-account-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow, 0 14px 32px rgba(44, 62, 80, 0.12));
}
.lp-account-card b {
  font-size: 16px;
  font-weight: 900;
}
.lp-account-card span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--lp-ink-soft);
}
@media (prefers-reduced-motion: reduce) {
  .lp-account-card {
    transition: none;
  }
  .lp-account-card:hover {
    transform: none;
  }
}
.lp-larf .lp-larf-marks {
  list-style: none;
  padding: 0;
}

/* ===========================================================================================
   The start page, simpler (2026-11-15): a short top menu, a calmer phone page, one line about
   who made Whalia, and the less needed links in the footer.
   =========================================================================================== */

/* Top menu on computers: How it works · For dyslexia · Get the extension · Log In · Get started.
   Log In is a quiet outline, so only Get started stands out; it comes last. (The nav's children
   join the bar's own row so the account button can sit between them.) */
@media (min-width: 1001px) {
  body[data-screen="landing"] .lp-barnav {
    display: contents;
  }
  body[data-screen="landing"] .lp-barnav > [data-lp-start] {
    order: 1;
    margin-left: 6px;
  }
  body[data-screen="landing"] .app-bar > .timer-btn,
  body[data-screen="landing"] .app-bar > .chat-toggle,
  body[data-screen="landing"] .app-bar > .lang-picker,
  body[data-screen="landing"] .app-bar > #bugBtn,
  body[data-screen="landing"] .app-bar > .account-nav.is-signed-in {
    order: 2;
  }
  body[data-screen="landing"] .app-bar > .account-nav:not(.is-signed-in) {
    margin-left: 6px;
  }
}
body[data-screen="landing"] .account-login-btn {
  background: #fff;
  color: #40566d;
  border: 1px solid #d6dfeb;
  box-shadow: none;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
}
body[data-screen="landing"] .account-login-btn:hover {
  background: #f4f8fc;
  transform: none;
}

/* The extension can't run on phones: no menu link there, and one line instead of its section. */
.lp-ext-phone {
  display: none;
}
@media (max-width: 720px) {
  body[data-screen="landing"] .lp-barnav .lp-barlink--ext {
    display: none !important;
  }
  #lpExtension {
    display: none;
  }
  .lp-ext-phone {
    display: block;
    margin: 4px 0 48px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #eef5ff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
  }
  .lp-ext-phone a {
    color: #1f4f86;
    text-decoration: none;
  }
}

/* Who made it: one line, linking to the story */
.lp-madeby {
  margin: 28px 0 64px;
  text-align: center;
  font-size: 17px;
  color: var(--lp-ink-soft);
}
.lp-madeby a {
  font-weight: 800;
  color: #7a5bb5;
  white-space: nowrap;
}

/* The footer: the links that left the top menu, then privacy and who made it */
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  width: 100%;
  margin-bottom: 6px;
}
.lp-footer-links a,
.lp-footer-links button {
  border: 0;
  background: none;
  padding: 4px 0;
  font: inherit;
  font-weight: 700;
  color: #4f5f73;
  text-decoration: none;
  cursor: pointer;
}
.lp-footer-links a:hover,
.lp-footer-links button:hover {
  color: #1f2a37;
  text-decoration: underline;
}

/* ------------------------------------------------------------------ phones */
@media (max-width: 640px) {
  /* The first screen: a smaller whale, one short label, the promise, one big button. */
  .lp-hero-whale {
    width: 108px;
    margin-bottom: -2px;
  }
  .lp-intro .lp-for-all {
    margin-bottom: 6px;
    font-size: 11.5px;
  }
  .lp-intro h1 {
    font-size: 32px;
    line-height: 1.18;
    margin-bottom: 12px;
  }
  .lp-intro .lp-lead {
    font-size: 16.5px;
    line-height: 1.6;
  }
  .lp-intro .lp-row {
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .lp-intro .lp-row .lp-btn--grad {
    width: 100%;
    justify-content: center;
  }
  .lp-intro .lp-row .lp-btn--soft {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 10px;
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .lp-intro .lp-trust {
    font-size: 13px;
    text-align: center;
  }

  /* The example: its scenes in one row to swipe, a shorter document, then the chat. */
  .lp-demo-head {
    display: grid;
    gap: 10px;
  }
  .lp-scenes {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 2px 16px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .lp-scenes::-webkit-scrollbar {
    display: none;
  }
  .lp-scene {
    flex: none;
  }
  .lp-switch {
    justify-self: start;
  }
  .lp-main {
    max-height: 260px;
  }
  .lp-chat {
    height: 300px;
  }

  /* Why an account: one card, the five benefits as short lines. */
  .lp-account-grid {
    gap: 0;
    padding: 4px 18px;
    border-radius: 20px;
    background: var(--lp-paper);
    box-shadow: var(--lp-shadow-sm, 0 8px 24px rgba(44, 62, 80, 0.07));
  }
  .lp-account-card {
    padding: 13px 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    border-bottom: 1px solid var(--lp-line, #e6ecf3);
  }
  .lp-account-card:last-child {
    border-bottom: 0;
  }
  .lp-account-card:hover {
    transform: none;
    box-shadow: none;
  }
  .lp-account-card span {
    display: none;
  }
  .lp-account > .lp-btn {
    width: 100%;
    justify-content: center;
  }

  /* For dyslexia: the three to try and the love letter; "Who it's for" is said by the page already. */
  .lp-who-title,
  .lp-who {
    display: none;
  }

  /* The tools: a grid of six, icon and name (each one opens its tool). */
  #lpTools .lp-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
  }
  #lpTools .lp-group h3 {
    grid-column: 1 / -1;
    margin: 0 0 2px;
  }
  #lpTools .lp-tool {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 92px;
    margin: 0;
    padding: 12px 8px;
    text-align: center;
  }
  #lpTools .lp-tool-text {
    align-items: center;
  }
  #lpTools .lp-tool-text small,
  #lpTools .lp-tool-go,
  #lpTools .lp-tool--info {
    display: none;
  }
  /* AI podcast and video: there too, greyed out, with "Soon" under their name */
  #lpTools .lp-tool[disabled] {
    opacity: 0.7;
  }
  #lpTools .lp-tool[disabled] .lp-soon {
    position: static;
    margin: 0;
    font-size: 11px;
  }

  /* The research: the papers' names and links; their summaries are on the story page. */
  #lpResearch .lp-paper-text,
  #lpResearch .lp-paper-authors {
    display: none;
  }
  .lp-madeby {
    margin: 20px 0 48px;
    font-size: 16px;
  }

  /* The questions: the five that matter most. */
  .lp-q--more {
    display: none;
  }
}

/* Phones: no big whale at the top (Whalia is in the top bar), "How it works" as a slideshow of the
   features instead of the interactive example (that one is for computers), and on the document screen a note
   that Whalia has more room on a computer. */
.lp-how-simple,
.lp-start-phone {
  display: none;
}
@media (max-width: 640px) {
  .lp-intro .lp-hero-whale {
    display: none;
  }
  .lp-intro {
    padding-top: 22px;
  }
  #lpHow .lp-demo-head,
  #lpHow #lpCaption,
  #lpHow #lpShot,
  #lpHow .larf-info {
    display: none !important;
  }
  .lp-how-simple {
    display: block;
    margin-bottom: 18px;
  }
  .lp-how-simple h2 {
    margin: 0 0 14px;
    font-size: 26px;
  }
  .lp-fs-intro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.5;
  }
  .lp-fs-intro b {
    display: block;
    font-size: 16px;
  }
  .lp-fs-intro small {
    display: block;
    font-size: 14px;
    color: var(--lp-ink-soft);
  }
  /* One feature per slide; the next one peeks in from the right, to show there is more. */
  .lp-fs-track {
    position: relative;
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .lp-fs-track::-webkit-scrollbar {
    display: none;
  }
  /* A card with two faces in the same place; tapping it turns it over. */
  .lp-fs-slide {
    flex: 0 0 86%;
    display: grid;
    margin: 0;
    perspective: 1400px;
    scroll-snap-align: center;
  }
  .lp-fs-face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px 16px 12px;
    border-radius: 22px;
    background: var(--lp-paper, #ffffff);
    box-shadow: var(--lp-shadow-sm, 0 8px 24px rgba(44, 62, 80, 0.07));
    overflow: hidden;
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
  }
  .lp-fs-face:focus-visible {
    outline: 3px solid #b4c8f0;
    outline-offset: 2px;
  }
  .lp-fs-back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, #eef5ff, #f6eefc);
  }
  .lp-fs-slide.is-flipped .lp-fs-front {
    transform: rotateY(-180deg);
  }
  .lp-fs-slide.is-flipped .lp-fs-back {
    transform: rotateY(0);
  }
  .lp-fs-back > b {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  .lp-fs-back ul {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
  }
  .lp-fs-back li {
    position: relative;
    padding: 10px 12px 10px 38px;
    border-radius: 14px;
    background: var(--lp-paper, #ffffff);
    font-size: 15px;
    line-height: 1.45;
  }
  .lp-fs-back li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 9px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lp-lilac, #a873d6);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
  }
  .lp-fs-try {
    justify-content: center;
    margin-top: auto;
  }
  .lp-fs-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-lilac, #a873d6);
  }
  @media (prefers-reduced-motion: reduce) {
    .lp-fs-face {
      transition: none;
    }
  }
  .lp-fs-slide figcaption {
    display: grid;
    gap: 4px;
    min-height: 104px;
    margin-bottom: 12px;
  }
  .lp-fs-slide figcaption b {
    font-size: 18px;
    line-height: 1.3;
  }
  .lp-fs-slide figcaption span {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--lp-ink-soft);
  }
  .lp-fs-slide figcaption mark {
    background: var(--lp-mark, #e2abe266);
    color: inherit;
    border-radius: 3px;
    padding: 0 2px;
  }
  /* The picture: the same height on every slide. */
  .lp-fs-shot {
    --fs-shot: min(340px, 46vh);
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--fs-shot);
    box-sizing: border-box;
    padding: 10px;
    border-radius: 16px;
    background: #f6f9fd;
  }
  /* The whole picture, made smaller to fit (never cut). */
  .lp-fs-shot img {
    display: block;
    max-width: 100%;
    max-height: calc(var(--fs-shot) - 20px);
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.1);
  }
  .lp-fs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .lp-fs-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--lp-line, #e6ecf3);
    border-radius: 50%;
    background: var(--lp-paper, #ffffff);
    color: var(--lp-ink, #1f2a37);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
  .lp-fs-dots {
    display: flex;
    gap: 2px;
  }
  .lp-fs-dot {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .lp-fs-dot::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: auto;
    border-radius: 50%;
    background: #cdd8e6;
    transition: width 0.2s, background 0.2s;
  }
  .lp-fs-dot[aria-current="true"]::before {
    width: 20px;
    border-radius: 4px;
    background: var(--lp-lilac, #a873d6);
  }
  /* "Designed for dyslexic readers · Made for everyone": a small label, not a heading. */
  .lp-intro .lp-for-all-badge {
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.5;
  }
  .lp-start-phone {
    display: block;
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #eef5ff;
    color: #1f4f86;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
  }
}
@media (max-width: 640px) {
  #lpHow .lp-more {
    margin-top: 0;
  }
}

/* The example's smart highlights switch with its yellow ⓘ right next to it */
.lp-switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
