/* ============================================================
   Linea — UI/UX product case study
   Rebuilt natively from the per-section Figma specs.
   Design system: Geist, Violet scale, Gray scale (see tokens).
   ============================================================ */

:root {
  --violet-50: #fbf5ff;
  --violet-100: #f5e9fe;
  --violet-200: #eed7fd;
  --violet-300: #e0b7fb;
  --violet-400: #cd89f7;
  --violet-500: #ba5cf0;
  --violet-600: #a73be2;
  --violet-700: #8f2ac6;
  --gray-50: #f4f7f9;
  --gray-100: #eceff3;
  --gray-200: #dce3e9;
  --gray-300: #c6d1db;
  --gray-400: #aebacb;
  --gray-500: #929eb6;
  --gray-600: #838da8;
  --gray-700: #707992;
  --gray-800: #5c6277;
  --gray-900: #4e5461;
  --gray-950: #2d3039;
  --pink-400: #ff7ac1;
  --pink-100: #fee5f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Geist", sans-serif;
  color: var(--gray-900);
  background: #fdfcfe;
}

img {
  display: block;
}

.page {
  position: relative;
  overflow: clip;
}

/* ---------- Background system (from the Figma file) ---------- */

.bg-el {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.bg-blobs-top {
  left: 50%;
  top: -620px;
  width: 3670px;
  height: 3065px;
  transform: translateX(-58%);
  opacity: 0.55;
}

.bg-blobs-bottom {
  left: 50%;
  bottom: -1650px;
  width: 3249px;
  height: 3544px;
  transform: translateX(-46%);
  opacity: 0.55;
}

/* Vector line exports placed at the page corners */
.bg-line-tr {
  right: 0;
  top: 0;
  width: min(1001px, 60vw);
  height: auto;
}

.bg-line-bl {
  left: 0;
  bottom: 0;
  width: min(1197px, 70vw);
  height: auto;
}

.wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

/* ---------- Shared type ---------- */

.h-section {
  margin: 0 0 40px;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--violet-700);
}

.h-section.narrow {
  max-width: 613px;
}

.h-group {
  margin: 96px 0 40px;
  font-size: 32px;
  font-weight: 400;
  color: var(--violet-700);
}

.sub-label {
  margin: 0 0 40px;
  font-size: 20px;
  color: var(--violet-700);
}

.lead {
  margin: 0 0 20px;
  max-width: 733px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--gray-900);
}

.lead.narrow {
  max-width: 471px;
}

.lead.big {
  font-size: 24px;
  max-width: none;
}

.cell-label {
  font-size: 14px;
  color: var(--gray-900);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 174px;
  padding-bottom: 40px;
}

.tag {
  position: absolute;
  right: 0;
  top: 62px;
  margin: 0;
  color: var(--violet-500);
  font-size: 18px;
}

.home-link {
  position: absolute;
  left: 0;
  top: 62px;
  font-family: "Google Sans Code", monospace;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--violet-700);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.home-link:hover {
  text-decoration: none;
  transform: translateX(-3px);
}

.hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--violet-700);
  text-align: center;
}

.subtitle {
  margin: 24px 0 0;
  font-size: 28px;
  font-weight: 500;
  color: var(--violet-700);
  text-align: center;
}

.hero-copy {
  margin: 32px auto 0;
  max-width: 540px;
  text-align: center;
  font-size: 18px;
  line-height: 1.45;
}

.hero-copy p {
  margin: 0 0 26px;
}

/* Transparent laptop export (Mockup.png from the designer) */
.laptop {
  position: absolute;
  right: -140px;
  top: 400px;
  width: 660px;
  max-width: 52vw;
  height: auto;
}

.hero .why {
  margin: 130px 0 0 96px;
  max-width: 460px;
}

.hero .approach {
  margin: 96px 0 0 196px;
  max-width: 460px;
}

.hero h2 {
  margin: 0 0 24px;
  font-size: 40px;
  font-weight: 400;
  color: var(--violet-700);
}

.hero .why p,
.hero .approach p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

/* ---------- Personas ---------- */

.personas {
  margin-top: 120px;
}

.carousel {
  display: flex;
  gap: 32px;
  margin-top: 64px;
  padding: 48px calc((100% - 900px) / 2) 72px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.persona {
  flex: none;
  width: 900px;
  max-width: 100%;
  min-height: 580px;
  padding: 48px;
  border-radius: 24px;
  background: #fff;
  filter: drop-shadow(0 8px 11px rgba(45, 48, 57, 0.12)) drop-shadow(0 14px 32px rgba(45, 48, 57, 0.12));
  display: flex;
  flex-direction: column;
  gap: 32px;
  scroll-snap-align: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.carousel-dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  position: relative;
  cursor: pointer;
}

.carousel-dots button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--violet-200);
  transition: background 0.15s;
}

.carousel-dots button:hover::before {
  background: var(--violet-300);
}

.carousel-dots button.active {
  background: var(--violet-500);
  box-shadow: 0 20px 10px rgba(131, 141, 168, 0.08);
  animation: dot-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-dots button.active::before {
  display: none;
}

.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  color: var(--gray-950);
}

.chip-tag {
  padding: 8px 12px;
  border: 1px solid var(--violet-300);
  border-radius: 100px;
  font-size: 11px;
  color: var(--violet-500);
  white-space: nowrap;
}

.p-profile {
  display: flex;
  align-items: center;
  gap: 40px;
}

.avatar {
  flex: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--mark img,
.avatar--emma img {
  width: 240%;
  height: auto;
  margin-left: -93.4%;
}

.avatar--david img {
  object-position: 50% 15%;
}

.p-meta {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.infos {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 16px;
  font-size: 14px;
}

.infos > div {
  display: contents;
}

.infos dt {
  color: var(--gray-800);
}

.infos dd {
  margin: 0;
  color: var(--gray-950);
}

.p-quote {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--gray-950);
}

.p-key {
  margin: 0;
  font-size: 20px;
  color: var(--gray-950);
}

.p-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--gray-950);
}

.p-row {
  display: flex;
  gap: 24px;
}

.p-row > div {
  flex: 1 1 0;
  min-width: 0;
}

.p-row h4 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
}

.p-row ul {
  margin: 0;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- UX Flows ---------- */

.flows {
  margin-top: 120px;
}

.flow-img {
  width: 100%;
  height: auto;
  margin-top: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  object-fit: cover;
}

.flow-img + .flow-img {
  margin-top: 40px;
}

/* ---------- Foundations ---------- */

.foundations {
  margin-top: 120px;
}

.foundations-content {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  gap: 80px;
  align-items: stretch;
}

.palette {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 19.6px;
}

.p-row-c {
  display: flex;
  align-items: center;
  gap: 9.8px;
}

.p-row-c span {
  width: 40px;
  flex: none;
  font-family: "Inter", sans-serif;
  font-size: 8.6px;
  color: #000;
}

.p-row-c i {
  width: 24.5px;
  height: 24.5px;
  border-radius: 8px;
  flex: none;
}

.type-specimen {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
}

.ts-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.ts-headings {
  flex: none;
  width: 250px;
  color: var(--gray-950);
}

.ts-headings p {
  margin: 0 0 30px;
  line-height: 1.1;
  white-space: nowrap;
}

.ts-h1 { font-size: 48px; }
.ts-h2 { font-size: 40px; }
.ts-h3 { font-size: 32px; }
.ts-h4 { font-size: 24px; }
.ts-h5 { font-size: 20px; }
.ts-h6 { font-size: 16px; }

.ts-samples {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ts-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.ts-row > span {
  flex: none;
  width: 78px;
  font-size: 12px;
  color: var(--gray-900);
}

.ts-row p {
  margin: 0;
  color: var(--gray-950);
  line-height: 1.35;
}

.ts-body16 { font-size: 11.5px; }
.ts-body14 { font-size: 10.1px; }
.ts-quote { font-size: 14.4px; font-weight: 500; }
.ts-small { font-size: 8.7px; }

.type-specimen .sub-label {
  color: var(--violet-600);
  margin: 0 0 40px;
}

/* "Buttons" block bottom-aligns with the palette column */
.ts-grid + .sub-label {
  margin-top: auto;
  padding-top: 32px;
}

.ts-buttons {
  display: flex;
  gap: 58px;
  align-items: baseline;
  color: #000;
}

.b-xl { font-size: 14.4px; }
.b-l { font-size: 11.5px; }
.b-m { font-size: 10.1px; }
.b-s { font-size: 8.7px; }

/* ---------- Spacing ---------- */

.spacing {
  margin-top: 120px;
}

.spacing-content {
  margin-top: 64px;
  display: flex;
  gap: 164px;
  align-items: flex-start;
}

.spacing-example {
  position: relative;
  flex: none;
  width: 466px;
  height: 590px;
}

.sp-card {
  position: absolute;
  left: 84px;
  top: 59px;
  width: 340px;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}

.sp-img {
  width: 100%;
  height: 205px;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0.8;
}

.sp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--gray-950);
}

.sp-h {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 29px;
}

.sp-d {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  height: 44px;
  overflow: hidden;
}

.sp-btn {
  min-width: 140px;
  height: 40px;
  padding: 8px 32px;
  border: none;
  border-radius: 16px;
  background: var(--violet-400);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}

.spacing-example .g {
  position: absolute;
  background: #9cbfff;
  opacity: 0.5;
  pointer-events: none;
}

.spacing-example .gv {
  top: 31px;
  width: 12px;
  height: 456px;
}

.spacing-example .gh {
  left: 46px;
  width: 420px;
}

.spacing-example .gl {
  position: absolute;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #5576ff;
}

.spacing-units {
  flex: none;
  width: 425px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.su-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.su-row b {
  flex: none;
  width: 46px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-align: right;
}

.su-row i {
  flex: 1 1 auto;
  background: #c2daff;
}

/* ---------- Grid ---------- */

.grid-section {
  margin-top: 120px;
}

.grid-demo {
  position: relative;
  margin: 64px -64px 0;
  height: 360px;
}

.gd-cols {
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 320px;
  padding: 0 64px;
  display: flex;
  gap: 16px;
}

.gd-cols i {
  flex: 1 1 0;
  background: #c2daff;
}

.gd-margin {
  position: absolute;
  right: 0;
  top: 0;
  width: 64px;
  height: 360px;
  background: var(--pink-100);
  border-left: 1px dashed #fa3a9b;
  border-right: 1px dashed #fa3a9b;
}

/* Gutter overlay anchored to the real 4th column so it stays
   pixel-perfect at any width */
.gd-cols i:nth-child(4) {
  position: relative;
}

.gd-cols i:nth-child(4)::before {
  content: "";
  position: absolute;
  left: -16px;
  top: -15px;
  width: 16px;
  height: 360px;
  background: var(--pink-100);
  border-left: 1px dashed #fa3a9b;
  border-right: 1px dashed #fa3a9b;
  box-sizing: border-box;
}

.gd-cols i:nth-child(4)::after {
  content: "Gutters 16px";
  position: absolute;
  left: -8px;
  top: 200px;
  transform: translateX(-50%);
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 16px;
  background: #fa3a9b;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.gd-label {
  position: absolute;
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 16px;
  background: #fa3a9b;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.gd-label--cols {
  left: 50%;
  top: 68px;
  transform: translateX(-50%);
}

.gd-label--margins {
  right: 43px;
  top: 157px;
}


/* ---------- Component library ---------- */

.library {
  margin-top: 120px;
}

/* Buttons board */
.btn-board {
  display: grid;
  grid-template-columns: 98px repeat(3, 220px) 120px 120px;
  row-gap: 32px;
  align-items: center;
}

.btn-board .cell-label {
  align-self: end;
}

.btn {
  min-width: 140px;
  height: 40px;
  padding: 8px 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 16px;
  background: var(--violet-400);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  cursor: default;
}

.btn.is-hover { background: var(--violet-500); }
.btn.is-focus { background: var(--violet-700); }
.btn:disabled { background: var(--gray-200); color: var(--gray-600); }

.btn--outlined {
  background: none;
  border: 1px solid var(--violet-500);
  color: var(--violet-500);
}

.btn--outlined.is-hover { background: var(--violet-100); border-color: var(--violet-500); color: var(--violet-500); }
.btn--outlined.is-focus { background: var(--violet-300); border-color: var(--violet-700); color: var(--violet-700); }
.btn--outlined:disabled { background: none; border-color: var(--gray-600); color: var(--gray-600); }

.btn--borderless {
  background: none;
  color: var(--violet-500);
}

.btn--borderless.is-hover { background: var(--violet-100); }
.btn--borderless.is-focus { background: var(--violet-300); color: var(--violet-700); }
.btn--borderless:disabled { background: none; color: var(--gray-600); }

.btn--icon,
.btn--icon-outlined {
  min-width: 40px;
  width: 40px;
  padding: 8px;
}

.btn--icon-outlined {
  background: none;
  border: 1px solid var(--violet-500);
}

.btn--icon.is-hover { background: var(--violet-500); }
.btn--icon.is-focus { background: var(--violet-700); }
.btn--icon:disabled { background: var(--gray-200); }
.btn--icon-outlined.is-hover { background: var(--violet-100); }
.btn--icon-outlined.is-focus { background: var(--violet-300); border-color: var(--violet-500); }
.btn--icon-outlined:disabled { background: #fff; border-color: var(--gray-600); }

.btn img {
  width: 20px;
  height: 20px;
}

.btn.is-loading {
  padding: 8px 24px;
}

.mini-spin {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

.mini-spin--purple {
  border-color: var(--violet-200);
  border-top-color: var(--violet-500);
}

/* Text fields board */
.tf-board {
  display: grid;
  grid-template-columns: repeat(5, 200px);
  gap: 24px 32px;
  align-items: start;
}

.tf {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.tf label {
  color: var(--gray-700);
}

.tf label.dis {
  color: var(--gray-400);
}

.tf label.help {
  color: var(--gray-600);
}

.tf-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--gray-400);
  border-radius: 8px;
  background: #fff;
  min-height: 33px;
}

.tf-box .ph { color: var(--gray-500); font-size: 16px; }
.tf-box .val { color: var(--gray-950); font-size: 16px; }
.tf-box .dis { color: var(--gray-400); font-size: 16px; }

.tf-box img {
  width: 16px;
  height: 16px;
  flex: none;
}

.tf--hover { border-color: var(--violet-400); }
.tf--focused { border: 2px solid var(--violet-400); box-shadow: 0 0 0 2px rgba(205, 137, 247, 0.3); }
.tf--disabled { background: var(--gray-50); border-color: var(--gray-300); }
.tf--error { border-color: red; }
.tf--success { border-color: #00d648; }

.msg {
  margin: 0;
  padding-left: 12px;
  color: var(--gray-600);
}

.msg--error { color: red; }
.msg--success { color: #00d648; }
.msg--right { text-align: right; padding-right: 4px; }

.msg--split {
  display: flex;
  justify-content: space-between;
  padding-right: 4px;
}

.msg .count {
  font-weight: 600;
  color: var(--violet-600);
}

/* Checkbox / radio / switch boards */
.controls-board {
  margin-top: 80px;
  display: flex;
  gap: 120px;
  align-items: flex-start;
}

.ctrl-grid {
  display: grid;
  grid-template-columns: max-content repeat(3, max-content);
  gap: 36px;
  align-items: center;
}

.cb {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gray-500);
  border-radius: 4px;
  background: #fff;
}

.cb--hover { border-color: var(--gray-700); }
.cb--focused { border-color: var(--gray-700); outline: 2px solid var(--gray-200); outline-offset: 1px; }
.cb--disabled { border-color: var(--gray-300); }

.cb-img {
  width: 16px;
  height: 16px;
}

.cb-img--focus {
  width: 20px;
  height: 20px;
  margin: -2px;
}

.radio-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.radio-list > div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.radio-list img {
  width: 16px;
  height: 16px;
  flex: none;
}

.radio {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--violet-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radio--inactive {
  border-color: var(--violet-300);
}

.radio img {
  width: 10px;
  height: 10px;
}

.radio-list .sw-img {
  width: 32px;
  height: 16px;
}

/* Navigation boards */
.nav-board {
  display: flex;
  gap: 120px;
  align-items: flex-start;
}

.mirror {
  transform: scaleX(-1);
}

.nav-rows {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nav-row {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.pgn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pgn img {
  width: 24px;
  height: 24px;
}

.pgn--slider img {
  width: 32px;
  height: 32px;
}

.pgn--tight {
  gap: 0;
}

.pgn-num {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gray-700);
  border-radius: 8px;
}

.pgn-num--border {
  border: 1px solid var(--gray-200);
  border-radius: 0;
}

.pgn-num--wide {
  width: auto;
  padding: 0 10px;
  white-space: nowrap;
}

.pgn-num--active {
  background: var(--violet-400);
  color: #fff;
}

.pgn--numbers {
  gap: 8px;
}

.pgn--bg {
  gap: 4px;
}

.pgn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 100px;
  background: var(--gray-50);
}

.pgn--bg > img {
  width: 32px;
  height: 32px;
}

.dot-board {
  display: flex;
  flex-direction: column;
}

.dots-row {
  display: flex;
  gap: 16px;
  padding: 16px;
}

.dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dot::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--violet-200);
}

.dot.active {
  background: var(--violet-500);
  box-shadow: 0 20px 10px rgba(131, 141, 168, 0.08);
}

.dot.active::before {
  display: none;
}

/* Cards */
.cards-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.card-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 364px;
}

.cards-row--vertical .card-col {
  width: 264px;
}

.lcard {
  display: flex;
  gap: 32px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  align-items: stretch;
}

.lcard--elevated {
  box-shadow: 0 8px 28px -6px rgba(45, 48, 57, 0.12), 0 18px 88px -4px rgba(45, 48, 57, 0.14);
}

.lcard--filled {
  background: var(--pink-100);
}

.lcard--outlined {
  border: 1px solid var(--gray-300);
}

.lcard-thumb {
  flex: none;
  width: 158px;
  aspect-ratio: 1 / 1;
  align-self: center;
  border-radius: 16px;
  overflow: hidden;
}

.lcard-thumb img,
.vcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lcard-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.lc-h {
  margin: 0;
  font-size: 24px;
  color: var(--gray-950);
}

.lc-s {
  margin: 0;
  font-size: 16px;
  color: var(--gray-950);
}

.lc-d {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--gray-950);
}

.lc-btn {
  height: 36px;
  padding: 8px 32px;
  border: none;
  border-radius: 16px;
  background: var(--pink-400);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}

.vcard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
}

.vcard.lcard--filled {
  background: var(--pink-100);
}

.vcard.lcard--outlined {
  border: 1px solid var(--gray-300);
}

.vcard .lc-h,
.vcard .lc-d {
  width: 100%;
}

.vcard-thumb {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
}

/* Badges & chips */
.bc-board {
  margin-top: 80px;
  display: flex;
  gap: 117px;
  align-items: flex-start;
}

.badge-grid {
  display: flex;
  gap: 74px;
  margin-bottom: 40px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.badge-mail {
  position: relative;
  display: inline-block;
  padding: 7px 6px 7px 6px;
}

.badge-mail img {
  width: 22px;
  height: 18px;
}

.bdg {
  position: absolute;
  top: -8px;
  left: 16px;
  min-width: 16px;
  height: 16px;
  padding: 2px 6px;
  border-radius: 24px;
  background: #ffa1d6;
  color: #000;
  font-size: 10px;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bdg--dotless {
  min-width: 6px;
  width: 6px;
  height: 6px;
  padding: 0;
  top: 0;
  left: 26px;
}

/* Badge avatars keep their natural framing */
.badge-avatar img[src*="badge-cat"] {
  object-position: 85% 10%;
}

.badge-avatar img[src*="badge-iguana"] {
  object-position: 55% 45%;
}

.badge-grid--avatars {
  gap: 48px;
  margin-bottom: 0;
}

.badge-avatar {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
}

.badge-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.bdg--corner {
  top: auto;
  left: auto;
  bottom: -2px;
  right: -4px;
  border: 2px solid #fff;
}

.bdg--corner.bdg--dotless {
  width: 10px;
  height: 10px;
  min-width: 10px;
  bottom: 2px;
  right: 0;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 48px 24px;
}

.chip-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.lchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--violet-300);
  border-radius: 100px;
  font-size: 11px;
  color: var(--violet-500);
}

.lchip img {
  width: 8px;
  height: 8px;
}

.lchip--hover,
.lchip--drag {
  background: var(--violet-100);
}

.lchip--drag {
  filter: drop-shadow(0 20px 10px rgba(131, 141, 168, 0.08));
}

.lchip--active {
  background: var(--violet-100);
  border-color: var(--violet-600);
  color: var(--violet-600);
}

.lchip--pressed {
  border-color: var(--violet-400);
}

.lchip--disabled {
  color: var(--violet-300);
}

/* ---------- Component behavior (live demos) ---------- */

.behavior {
  margin-top: 120px;
}

.demo-row {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.demo-row--controls {
  justify-content: space-between;
  max-width: 1152px;
}

.demo {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.demo h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--violet-700);
  text-align: center;
}

.demo--linear {
  width: 320px;
}

.demo--linear .linear + .linear {
  margin-top: 8px;
}

.demo-inline {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 40px;
}

/* circular */
.spinner {
  width: 56px;
  height: 56px;
}

.spinner .arc {
  transform-origin: 50% 50%;
  animation: spin 1.4s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* linear */
.linear {
  width: 320px;
  height: 6px;
  border-radius: 100px;
  background: var(--gray-200);
  overflow: hidden;
  position: relative;
}

.linear span {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 6px;
  border-radius: 100px;
  background: var(--violet-500);
  animation: indeterminate 1.6s ease-in-out infinite;
}

@keyframes indeterminate {
  0% { left: -160px; }
  100% { left: 320px; }
}

/* determinate bar fills, pauses, resets */
.linear span.det {
  left: 0;
  width: 0;
  animation: fill-up 2.6s ease-in-out infinite;
}

@keyframes fill-up {
  0% { width: 0; }
  70% { width: 100%; }
  100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner .arc { animation: none; }
  .linear span { animation: none; left: 40px; }
  .mini-spin { animation: none; }
}

/* checkbox 24px, radius 6, 1.5px border */
.bcb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.5px solid var(--gray-500);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.bcb:checked {
  border: none;
  background: url(../assets/linea/beh-checkbox-on.svg) center / contain no-repeat;
}

.bcb:focus-visible {
  outline: 2px solid var(--violet-700);
  outline-offset: 2px;
}

/* slider — 200px, 8px track, 24px thumb */
.slider {
  appearance: none;
  -webkit-appearance: none;
  width: 200px;
  margin-top: 8px;
  height: 8px;
  border-radius: 100px;
  background: linear-gradient(to right, var(--violet-500) 0%, var(--violet-500) var(--fill, 12%), var(--gray-200) var(--fill, 12%), var(--gray-200) 100%);
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--violet-500);
  box-shadow: 0 4px 6px rgba(45, 48, 57, 0.18);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--violet-500);
  box-shadow: 0 4px 6px rgba(45, 48, 57, 0.18);
}

.slider:focus-visible {
  outline: 2px solid var(--violet-700);
  outline-offset: 4px;
}

/* switch 64x32 */
.switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 32px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid var(--gray-500);
  transition: background 0.2s, border-color 0.2s;
}

.switch span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  translate: 0 -50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-500);
  transition: transform 0.2s, background 0.2s;
}

.switch input:checked + span {
  background: var(--violet-500);
  border-color: var(--violet-500);
}

.switch input:checked + span::after {
  background: #fff;
  transform: translateX(31px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--violet-700);
  outline-offset: 2px;
}

/* interactive dots */
.dots {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  position: relative;
  cursor: pointer;
}

.dots button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--violet-200);
  transition: background 0.15s;
}

.dots button:hover::before {
  background: var(--violet-300);
}

.dots button.active {
  background: var(--violet-500);
  box-shadow: 0 20px 10px rgba(131, 141, 168, 0.08);
  animation: dot-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dots button.active::before {
  display: none;
}

@keyframes dot-pop {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

/* accordion — 656px, recolors when open, smooth height animation */
.accordion {
  width: 656px;
  max-width: 100%;
  border-radius: 16px;
  background: var(--gray-100);
  interpolate-size: allow-keywords;
  transition: background 0.3s;
}

.accordion summary {
  list-style: none;
  padding: 24px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-950);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
}

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

.accordion .chev {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform 0.3s;
}

.accordion[open] {
  background: #f6effd;
}

.accordion[open] summary {
  color: var(--violet-600);
}

.accordion[open] .chev {
  transform: rotate(180deg);
}

.accordion::details-content {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease, content-visibility 0.35s allow-discrete;
}

.accordion[open]::details-content {
  height: auto;
}

.accordion p {
  margin: 0;
  padding: 0 16px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-950);
}

/* ---------- Wireframe & footer ---------- */

.wireframe {
  margin-top: 120px;
}

.wire-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 1024;
  margin-top: 44px;
  border: 4px solid var(--gray-200);
  border-radius: 20px;
  object-fit: cover;
}

.outro {
  margin-top: 120px;
  padding-bottom: 100px;
  text-align: center;
}

.outro .note {
  margin: 0 auto;
  max-width: 560px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--violet-700);
}

.outro .thanks {
  margin: 72px 0 0;
  font-size: 40px;
  font-weight: 500;
  color: var(--violet-700);
}

.outro .more {
  margin: 16px 0 0;
  font-size: 22px;
  color: var(--violet-700);
}

.social {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.social a {
  display: block;
}

.social img {
  width: 36px;
  height: 36px;
}

/* ============================================================
   Responsive — the boards compress below their natural widths
   ============================================================ */

@media (max-width: 1279px) {
  .btn-board {
    grid-template-columns: 90px repeat(3, minmax(150px, 1fr)) 80px 80px;
    overflow-x: auto;
  }

  .tf-board {
    grid-template-columns: repeat(auto-fill, 200px);
  }

  .controls-board,
  .nav-board,
  .bc-board {
    flex-wrap: wrap;
    gap: 64px;
  }

  .foundations-content {
    flex-direction: column;
  }

  .spacing-content {
    flex-wrap: wrap;
    gap: 64px;
  }

  .cards-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .wrap {
    padding: 0 20px;
  }

  .bg-line-1,
  .bg-line-2 {
    display: none;
  }

  .hero h1 {
    margin-top: 48px;
    font-size: 44px;
  }

  .h-section {
    font-size: 32px;
  }

  .h-group {
    margin-top: 64px;
    font-size: 24px;
  }

  .sub-label {
    margin-bottom: 24px;
  }

  .tag {
    padding-top: 56px;
    font-size: 15px;
  }

  .home-link {
    right: 20px;
    top: 20px;
  }

  .subtitle {
    font-size: 20px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .laptop {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 32px;
    mask-image: none;
    -webkit-mask-image: none;
    border-radius: 8px;
  }

  .hero .why,
  .hero .approach {
    margin: 48px 0 0;
  }

  .hero h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  .lead.big {
    font-size: 18px;
  }

  .personas,
  .flows,
  .foundations,
  .spacing,
  .grid-section,
  .library,
  .behavior,
  .wireframe {
    margin-top: 88px;
  }

  .carousel {
    margin-top: 32px;
    padding: 24px 4px 40px;
  }

  .persona {
    width: 86vw;
    min-width: 300px;
    padding: 24px;
    gap: 24px;
  }

  .p-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .p-row {
    flex-direction: column;
    gap: 24px;
  }

  .p-key {
    font-size: 17px;
  }

  .foundations-content,
  .spacing-content {
    margin-top: 32px;
  }

  .spacing-example {
    transform-origin: top left;
    transform: scale(0.72);
    margin-bottom: -160px;
  }

  .spacing-units {
    width: 100%;
  }

  .grid-demo {
    margin: 32px -20px 0;
    height: 260px;
  }

  .gd-cols {
    top: 12px;
    height: 230px;
    padding: 0 20px;
    gap: 8px;
  }

  .gd-margin {
    width: 20px;
    height: 260px;
  }

  .gd-gutter {
    display: none;
  }

  .gd-label {
    font-size: 12px;
    padding: 8px;
  }

  .gd-label--cols { top: 48px; }
  .gd-label--margins { right: 8px; top: 120px; }
  .gd-label--gutters { display: none; }

  .demo-row {
    flex-direction: column;
    gap: 48px;
  }

  .demo {
    align-items: flex-start;
  }

  .demo h4 {
    text-align: left;
  }

  .linear,
  .demo--linear {
    width: min(320px, 100%);
  }

  .outro {
    margin-top: 96px;
    padding-bottom: 64px;
  }

  .outro .note {
    font-size: 17px;
  }

  .outro .thanks {
    margin-top: 48px;
    font-size: 26px;
  }

  .outro .more {
    font-size: 17px;
  }
}
