:root {
  --page: #f5f5f5;
  --frame: #ffffff;
  --ink: #1a1a1a;
  --muted: #d9d9d9;
  --muted-hover: #cfcfcf;
  --selected: #1f1f1f;
  --selected-text: #ffffff;
  --hairline: #eeeeee;
  --display: "Migra", "Bodoni 72", "Didot", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "Migra";
  src: local("Migra Extralight"),
    url("/Users/ameliatroncoso/Library/Fonts/Migra-Extralight.otf") format("opentype");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

button {
  font: inherit;
}

.prototype {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.account-panel {
  position: fixed;
  top: 44px;
  right: 48px;
  z-index: 20;
  width: max-content;
  font-size: 11px;
}

.profile-toggle {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 14px 34px rgb(0 0 0 / 10%);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.profile-toggle:hover,
.profile-toggle[aria-expanded="true"] {
  background: #f7f7f7;
  box-shadow: 0 18px 44px rgb(0 0 0 / 14%);
  transform: translateY(-1px);
}

.profile-avatar {
  position: relative;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f0ece5 0%, #d8d2c7 100%);
  overflow: hidden;
  display: block;
}

.profile-avatar-head {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  translate: -50% 0;
}

.profile-avatar-body {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 20px;
  height: 12px;
  border-radius: 999px 999px 4px 4px;
  background: var(--ink);
  translate: -50% 0;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 230px;
  padding: 14px;
  border-radius: 20px;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 22px 56px rgb(0 0 0 / 12%);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 10px;
}

.profile-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: rgb(255 255 255 / 86%);
  rotate: 45deg;
}

.profile-menu p {
  margin: 0;
  color: #707070;
  line-height: 1.35;
}

.account-form {
  display: grid;
  gap: 7px;
}

.account-form input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--page);
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}

.account-form div,
.account-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.profile-menu button,
.profile-menu a {
  border: 0;
  border-radius: 999px;
  background: var(--selected);
  color: var(--selected-text);
  cursor: pointer;
  font: inherit;
  padding: 7px 10px;
  text-decoration: none;
}

.profile-menu a,
.profile-menu button[data-auth-logout] {
  background: var(--page);
  color: #6f6f6f;
}

.screen {
  display: none;
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background: var(--frame);
  overflow: hidden;
  container-type: inline-size;
}

.screen:target,
.screen.is-active {
  display: block;
}

body:not(:has(.screen:target)) .screen-home {
  display: block;
}

.brand {
  position: absolute;
  top: 5.4%;
  left: 3.7%;
  margin: 0;
  font-size: clamp(8px, 0.82cqw, 14px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.landing-shell {
  position: absolute;
  inset: 0;
  display: block;
  padding: clamp(72px, 7.8cqw, 118px) clamp(42px, 5.8cqw, 92px) clamp(42px, 4.5cqw, 72px);
}

.landing-timeline {
  position: absolute;
  top: 17.6%;
  left: 50%;
  translate: -50% 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(66%, 1260px);
  margin: 0;
  padding: 0;
  text-align: center;
  list-style: none;
  z-index: 2;
}

.landing-timeline::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: clamp(10px, 1.18cqw, 15px);
  height: 1px;
  background: #e2e2e2;
  z-index: -1;
}

.landing-timeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(20px, 2.05cqw, 34px);
}

.landing-timeline span {
  width: clamp(22px, 1.6cqw, 31px);
  height: clamp(22px, 1.6cqw, 31px);
  border-radius: 50%;
  background: #dedede;
  color: #151515;
  display: grid;
  place-items: center;
  font-size: clamp(12px, 1.02cqw, 19px);
  font-weight: 800;
  line-height: 1;
}

.landing-timeline p {
  margin: 0;
  color: #1f1f1f;
  font-size: clamp(13px, 1.06cqw, 20px);
  line-height: 1.1;
  font-weight: 400;
}

.home-copy {
  position: absolute;
  left: 50%;
  top: 35.4%;
  width: min(82%, 1420px);
  translate: -50% 0;
  text-align: center;
  z-index: 2;
}

.landing-kicker {
  margin: 0 0 clamp(12px, 1.2cqw, 18px);
  color: #8c8c8c;
  font-size: clamp(9px, 0.78cqw, 13px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.landing-intro {
  width: min(430px, 58%);
  margin: clamp(28px, 2.8cqw, 48px) auto 0;
  color: #696969;
  font-size: clamp(10px, 0.74cqw, 14px);
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(78px, 7.55cqw, 146px);
  line-height: 1.14;
  font-weight: 200;
  letter-spacing: 0;
}

h1 span {
  white-space: nowrap;
}

.actions {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 1.9cqw, 24px);
  margin-top: clamp(46px, 5.2cqw, 88px);
}

.quiet-button {
  min-width: clamp(150px, 11.6cqw, 228px);
  min-height: clamp(44px, 3cqw, 56px);
  border: 0;
  border-radius: 999px;
  background: var(--page);
  color: #777777;
  font-size: clamp(12px, 0.78cqw, 16px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.quiet-button:hover:not([aria-disabled="true"]) {
  background: var(--muted-hover);
  color: var(--ink);
  transform: translateY(-1px);
}

.quiet-button[aria-disabled="true"] {
  cursor: default;
}

.landing-showcase {
  position: absolute;
  left: 50%;
  bottom: clamp(34px, 4.2cqw, 68px);
  translate: -50% 0;
  width: min(70%, 1000px);
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: clamp(18px, 2.2cqw, 34px);
  z-index: 1;
}

.project-preview {
  display: grid;
  grid-template-columns: clamp(112px, 11cqw, 164px) 1fr;
  align-items: center;
  gap: clamp(12px, 1.5cqw, 24px);
  min-height: clamp(120px, 11cqw, 172px);
  padding: clamp(12px, 1.4cqw, 20px);
  border-radius: clamp(22px, 2cqw, 32px);
  background: #f2f2f2;
  overflow: hidden;
}

.project-preview:nth-child(2) {
  transform: translateY(clamp(18px, 2.2cqw, 34px));
}

.project-preview p {
  margin: 0;
  color: #686868;
  font-size: clamp(9px, 0.78cqw, 13px);
  line-height: 1.42;
}

.project-image {
  position: relative;
  height: clamp(96px, 9.8cqw, 144px);
  border-radius: clamp(16px, 1.5cqw, 24px);
  overflow: hidden;
  background: #dedbd3;
}

.project-preview-branding .project-image {
  background:
    radial-gradient(circle at 78% 18%, rgb(255 255 255 / 52%) 0 13%, transparent 14%),
    linear-gradient(135deg, #1c1d1a 0%, #565047 50%, #e6d7bd 100%);
}

.brand-card,
.brand-poster,
.brand-token,
.package-box,
.package-label,
.package-shadow {
  position: absolute;
  display: block;
}

.brand-card {
  left: 12%;
  bottom: 14%;
  width: 44%;
  height: 31%;
  border-radius: 8px;
  background: #f3efe6;
  rotate: -8deg;
  box-shadow: 0 16px 26px rgb(0 0 0 / 22%);
}

.brand-card::after {
  content: "RAMA";
  position: absolute;
  left: 15%;
  top: 35%;
  color: #24241f;
  font-size: clamp(10px, 1cqw, 16px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-poster {
  right: 12%;
  top: 12%;
  width: 30%;
  height: 62%;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 0 42%, #f5ead8 43% 57%, transparent 58%),
    linear-gradient(180deg, #cab89c 0%, #272620 100%);
  rotate: 6deg;
}

.brand-token {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e9d7b8;
}

.token-one {
  left: 17%;
  top: 18%;
}

.token-two {
  right: 34%;
  bottom: 16%;
  background: #22231f;
}

.project-preview-packaging .project-image {
  background:
    radial-gradient(circle at 12% 20%, #f2c7b4 0 12%, transparent 13%),
    linear-gradient(145deg, #d9ead4 0%, #f6d3c8 48%, #eee8d9 100%);
}

.package-shadow {
  left: 18%;
  bottom: 13%;
  width: 68%;
  height: 17%;
  border-radius: 50%;
  background: rgb(0 0 0 / 12%);
  filter: blur(5px);
}

.package-box {
  left: 24%;
  top: 22%;
  width: 54%;
  height: 48%;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 34%) 0 28%, transparent 29%),
    linear-gradient(135deg, #f8b9ad 0%, #f2dfcc 100%);
  transform: skewY(-5deg);
  box-shadow: 0 18px 30px rgb(0 0 0 / 16%);
}

.package-label {
  left: 34%;
  top: 35%;
  width: 34%;
  height: 14%;
  border-radius: 999px;
  background: #f8f3e9;
}

.screen-categories h2 {
  position: absolute;
  top: 9.7%;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  font-size: clamp(8px, 0.82cqw, 14px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.category-grid {
  position: absolute;
  left: 50%;
  top: 45%;
  translate: -50% -34%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2cqw, 34px);
  width: min(86%, 1440px);
  height: clamp(430px, 48cqw, 650px);
}

.category-card {
  --category-image: none;
  --stagger-y: 0px;
  width: clamp(180px, 16cqw, 280px);
  height: 94%;
  border: 0;
  border-radius: clamp(18px, 1.55cqw, 28px);
  background-color: var(--muted);
  background-image:
    linear-gradient(180deg, rgb(0 0 0 / 5%) 0%, rgb(0 0 0 / 42%) 100%),
    var(--category-image);
  background-position: center;
  background-size: cover;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 14px clamp(26px, 2.4cqw, 42px);
  font-size: clamp(18px, 1.32cqw, 26px);
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 8px rgb(0 0 0 / 36%);
  transform: translateY(var(--stagger-y));
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.category-card:nth-child(even) {
  --stagger-y: clamp(54px, 5.2cqw, 78px);
}

.category-card[data-area="Branding"] {
  --category-image: url("https://images.unsplash.com/photo-1704030459012-bfbe0d55fec6?auto=format&fit=crop&w=700&q=80");
}

.category-card[data-area="Editorial"] {
  --category-image: url("https://images.unsplash.com/photo-1643485839726-c9d4fac1c9bd?auto=format&fit=crop&w=700&q=80");
}

.category-card[data-area="Packaging"] {
  --category-image: url("https://images.unsplash.com/photo-1617825295690-28ae56c56135?auto=format&fit=crop&w=700&q=80");
}

.category-card[data-area="Diseño de información"] {
  --category-image: url("assets/information-design.svg");
}

.category-card-tall {
  height: 94%;
}

.category-card-high {
  height: 94%;
}

.category-card:hover {
  color: #ffffff;
  transform: translateY(calc(var(--stagger-y) - 4px));
}

.question-form {
  position: absolute;
  inset: 13% 7% 9%;
  display: grid;
  align-content: center;
  gap: clamp(50px, 6.4cqw, 86px);
}

.choice-group {
  display: grid;
  gap: clamp(24px, 3cqw, 42px);
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}

.choice-group legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 clamp(20px, 2.4cqw, 38px);
  font-family: var(--display);
  font-size: clamp(28px, 2.55cqw, 44px);
  font-weight: 200;
  line-height: 0.95;
  text-align: center;
}

.choice-row {
  display: flex;
  justify-content: center;
  gap: clamp(9px, 1.25cqw, 16px);
  flex-wrap: wrap;
  margin-top: clamp(4px, 0.7cqw, 12px);
}

.choice-pill {
  min-width: clamp(122px, 10.6cqw, 184px);
  min-height: clamp(36px, 2.9cqw, 50px);
  border: 0;
  border-radius: 999px;
  background: var(--page);
  color: #6f6f6f;
  font-size: clamp(14px, 1cqw, 18px);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.choice-pill:hover {
  background: var(--muted);
  color: var(--ink);
}

.choice-pill.is-selected {
  background: var(--selected);
  color: var(--selected-text);
}

.choice-pill.is-selected:hover {
  background: var(--selected);
  color: var(--selected-text);
}

.generate-button {
  justify-self: center;
  min-width: clamp(164px, 14.4cqw, 250px);
  min-height: clamp(40px, 3.2cqw, 56px);
  border-radius: 999px;
  background: var(--selected);
  color: var(--selected-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1cqw, 18px);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, opacity 150ms ease;
}

.generate-button.is-disabled {
  background: var(--page);
  color: #9a9a9a;
  opacity: 0.75;
  pointer-events: none;
}

.briefs-header {
  position: absolute;
  top: 9.6%;
  left: 50%;
  translate: -50% 0;
  display: grid;
  gap: clamp(8px, 1cqw, 14px);
  text-align: center;
}

.briefs-header h2 {
  margin: 0;
  font-size: clamp(12px, 1.1cqw, 18px);
  font-weight: 600;
}

.briefs-regenerate {
  position: absolute;
  left: 50%;
  top: 92%;
  translate: -50% 0;
  z-index: 3;
  min-width: clamp(92px, 8.8cqw, 148px);
  min-height: clamp(24px, 2.2cqw, 38px);
  border: 0;
  border-radius: 999px;
  background: var(--page);
  color: #707070;
  cursor: pointer;
  font-size: clamp(9px, 0.82cqw, 13px);
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.briefs-regenerate:hover:not(:disabled) {
  background: var(--muted-hover);
  color: var(--ink);
  transform: translateY(-1px);
}

.briefs-regenerate:disabled {
  cursor: default;
  opacity: 0.58;
}

.briefs-kicker {
  margin: 0;
  color: #7c7c7c;
  font-size: clamp(9px, 0.82cqw, 13px);
}

.brief-grid {
  position: absolute;
  left: 50%;
  top: 48%;
  translate: -50% -42%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.4cqw, 40px);
  width: min(82%, 1180px);
  z-index: 1;
}

.brief-card {
  min-height: clamp(430px, 43cqw, 620px);
  margin: 0;
  padding: clamp(28px, 3cqw, 48px);
  border-radius: clamp(14px, 1.3cqw, 22px);
  background: var(--page);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brief-number {
  margin: 0;
  color: #8c8c8c;
  font-size: clamp(10px, 0.86cqw, 14px);
}

.brief-card h3 {
  margin: clamp(30px, 4cqw, 54px) 0 0;
  font-size: clamp(18px, 1.45cqw, 26px);
  line-height: 1.15;
  font-weight: 600;
}

.brief-card p:not(.brief-number) {
  margin: clamp(18px, 2.4cqw, 32px) 0 0;
  color: #686868;
  font-size: clamp(13px, 0.94cqw, 17px);
  line-height: 1.45;
}

.brief-meta {
  display: grid;
  gap: clamp(8px, 1cqw, 14px);
  margin: clamp(14px, 1.8cqw, 22px) 0 0;
}

.brief-meta div {
  display: grid;
  gap: 4px;
}

.brief-meta dt {
  color: #8c8c8c;
  font-size: clamp(8px, 0.72cqw, 11px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brief-meta dd {
  margin: 0;
  color: #5f5f5f;
  font-size: clamp(9px, 0.8cqw, 12px);
  line-height: 1.35;
}

.brief-card a {
  width: max-content;
  margin-top: clamp(18px, 2.2cqw, 28px);
  color: #696969;
  font-size: clamp(9px, 0.82cqw, 13px);
  text-decoration: none;
}

.loading-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(70%, 560px);
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2cqw, 26px);
  text-align: center;
}

.loading-kicker {
  margin: 0;
  color: #7c7c7c;
  font-size: clamp(7px, 0.68cqw, 11px);
}

.loading-mark {
  width: clamp(34px, 4.2cqw, 58px);
  aspect-ratio: 1;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  position: relative;
  animation: pulse 1300ms ease-in-out infinite;
}

.loading-mark::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: inherit;
  background: var(--selected);
}

.loading-panel h2 {
  margin: 0;
  font-size: clamp(18px, 2cqw, 30px);
  line-height: 1;
  font-weight: 600;
}

.loading-panel p:last-child {
  max-width: 420px;
  margin: 0;
  color: #676767;
  font-size: clamp(8px, 0.78cqw, 13px);
  line-height: 1.45;
}

@keyframes pulse {
  0%,
  100% {
    scale: 1;
    opacity: 0.55;
  }

  50% {
    scale: 1.16;
    opacity: 1;
  }
}

.detail-panel {
  position: absolute;
  inset: 13% 9% 8%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 2.4cqw, 32px);
}

.detail-kicker {
  margin: 0 0 clamp(8px, 1cqw, 14px);
  color: #777777;
  font-size: clamp(7px, 0.68cqw, 11px);
  text-align: center;
}

.detail-panel h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(20px, 2.2cqw, 34px);
  line-height: 1.06;
  font-weight: 600;
  text-align: center;
}

.detail-actions {
  justify-self: center;
  display: flex;
  gap: clamp(8px, 1cqw, 14px);
}

.save-brief-button {
  justify-self: center;
  min-width: clamp(86px, 8.4cqw, 136px);
  min-height: clamp(22px, 2cqw, 34px);
  border: 0;
  border-radius: 999px;
  background: var(--selected);
  color: var(--selected-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(7px, 0.68cqw, 11px);
  text-decoration: none;
}

.client-chat-link {
  background: var(--page);
  color: #6f6f6f;
}

.detail-notice {
  justify-self: center;
  display: grid;
  align-items: center;
  max-width: min(100%, 420px);
  padding: clamp(10px, 1.1cqw, 14px) clamp(12px, 1.4cqw, 18px);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: clamp(8px, 0.82cqw, 14px);
  background: #f5f2ee;
}

.detail-notice p {
  margin: 0;
  color: #4f4a44;
  font-size: clamp(8px, 0.78cqw, 12px);
  line-height: 1.4;
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6cqw, 22px) clamp(22px, 3cqw, 42px);
  max-height: 100%;
  overflow: auto;
  padding: 0 clamp(10px, 1.4cqw, 18px) clamp(12px, 1.6cqw, 20px);
}

.detail-block {
  padding: clamp(14px, 1.6cqw, 20px);
  border-radius: clamp(8px, 0.82cqw, 14px);
  background: var(--page);
}

.detail-block-wide {
  grid-column: 1 / -1;
}

.detail-block h3 {
  margin: 0 0 clamp(8px, 1cqw, 12px);
  color: #8c8c8c;
  font-size: clamp(7px, 0.66cqw, 10px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-block p,
.detail-block li {
  color: #4f4f4f;
  font-size: clamp(8px, 0.74cqw, 12px);
  line-height: 1.45;
}

.detail-block p {
  margin: 0;
}

.detail-block ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.1em;
}

.saved-panel {
  position: absolute;
  inset: 14% 12% 10%;
  display: grid;
  align-content: start;
  gap: clamp(12px, 1.5cqw, 20px);
}

.saved-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3.4cqw, 48px);
  line-height: 1;
  font-weight: 600;
}

.saved-panel > p:not(.briefs-kicker) {
  max-width: 460px;
  margin: 0;
  color: #707070;
  font-size: clamp(9px, 0.86cqw, 14px);
  line-height: 1.45;
}

.saved-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.9cqw, 26px);
  margin-top: clamp(12px, 1.5cqw, 22px);
}

.saved-item {
  min-height: clamp(130px, 14cqw, 190px);
  border: 0;
  border-radius: clamp(8px, 0.82cqw, 14px);
  background: var(--page);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: clamp(16px, 1.8cqw, 24px);
  text-align: left;
}

.saved-item h3 {
  margin: 0;
  font-size: clamp(11px, 1.05cqw, 17px);
  line-height: 1.15;
}

.saved-item p {
  margin: 0;
  color: #707070;
  font-size: clamp(7px, 0.68cqw, 11px);
  line-height: 1.35;
}

.client-chat-panel {
  position: absolute;
  inset: 12% 16% 9%;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: clamp(10px, 1.4cqw, 18px);
}

.client-chat-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3.4cqw, 48px);
  line-height: 1;
  font-weight: 600;
}

.client-chat-panel > p:not(.briefs-kicker) {
  max-width: 560px;
  margin: 0;
  color: #707070;
  font-size: clamp(8px, 0.78cqw, 13px);
  line-height: 1.45;
}

.client-chat-log {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: clamp(10px, 1.2cqw, 16px);
  padding-right: 8px;
}

.client-message,
.user-message {
  max-width: 78%;
  padding: clamp(12px, 1.4cqw, 18px);
  border-radius: clamp(10px, 1cqw, 16px);
  background: var(--page);
}

.user-message {
  justify-self: end;
  background: var(--selected);
  color: var(--selected-text);
}

.client-message strong,
.user-message strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(7px, 0.66cqw, 10px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.62;
}

.client-message p,
.user-message p {
  margin: 0;
  font-size: clamp(8px, 0.76cqw, 12px);
  line-height: 1.45;
}

.client-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(8px, 1cqw, 14px);
}

.client-chat-form input {
  border: 0;
  border-radius: 999px;
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: clamp(8px, 0.76cqw, 12px);
  padding: clamp(10px, 1.1cqw, 14px) clamp(14px, 1.6cqw, 20px);
}

.client-chat-form button {
  border: 0;
  border-radius: 999px;
  background: var(--selected);
  color: var(--selected-text);
  cursor: pointer;
  font-size: clamp(8px, 0.76cqw, 12px);
  padding: 0 clamp(16px, 1.8cqw, 24px);
}

@media (max-width: 760px) {
  .prototype {
    padding: 0;
  }

  .screen {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    aspect-ratio: auto;
  }

  .brand {
    top: 34px;
    left: 46px;
  }

  .home-copy {
    left: 9%;
    top: 36%;
    width: 82%;
    translate: 0;
  }

  .landing-timeline {
    top: 102px;
    width: 86%;
  }

  .landing-timeline p {
    font-size: 10px;
  }

  .landing-timeline::before {
    left: 7%;
    right: 7%;
  }

  h1 {
    font-size: 54px;
    line-height: 1.08;
  }

  h1 span {
    white-space: normal;
  }

  .landing-intro {
    width: 82%;
    font-size: 12px;
  }

  .actions {
    gap: 12px;
    margin-top: 34px;
    margin-left: 0;
  }

  .quiet-button {
    min-width: 150px;
    min-height: 42px;
  }

  .landing-showcase {
    bottom: 30px;
    width: 86%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-preview {
    grid-template-columns: 96px 1fr;
    min-height: 104px;
    border-radius: 22px;
  }

  .project-preview:nth-child(2) {
    transform: none;
  }

  .project-image {
    height: 86px;
  }

  .category-grid {
    top: 54%;
    width: 90%;
    gap: 10px;
    height: 320px;
  }

  .category-card {
    --stagger-y: 0px;
    width: 23%;
    min-width: 58px;
    border-radius: 14px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .category-card:nth-child(even) {
    --stagger-y: 34px;
  }

  .question-form {
    inset: 86px 26px 42px;
    gap: 52px;
  }

  .choice-group {
    gap: 22px;
  }

  .choice-group legend {
    font-size: 38px;
  }

  .choice-row {
    gap: 10px;
  }

  .choice-pill {
    min-width: 86px;
    min-height: 42px;
    font-size: 15px;
  }

  .generate-button {
    min-width: 190px;
    min-height: 48px;
    font-size: 15px;
  }

  .brief-grid {
    top: 55%;
    grid-template-columns: 1fr;
    width: 78%;
    max-height: 70vh;
    overflow: auto;
  }

  .brief-card {
    min-height: 180px;
  }

  .loading-panel {
    width: 78%;
  }

  .detail-panel {
    inset: 84px 24px 34px;
  }

  .detail-notice {
    max-width: none;
  }

  .detail-content {
    grid-template-columns: 1fr;
  }
}

.prototype .screen {
  display: none;
}

.prototype .screen:target,
.prototype .screen.is-active {
  display: block !important;
}

body:not(:has(.screen:target)) .prototype .screen-home {
  display: block !important;
}

body:has(.screen:target) .prototype .screen-home:not(:target) {
  display: none !important;
}
