/* braincoveAI — black, white, yellow */

:root {
  --black: #111111;
  --ink: #161616;
  --ink-2: #4b4b4b;
  --ink-3: #767676;
  --white: #ffffff;
  --paper: #fafaf7;
  --line: #e6e4dd;
  --line-strong: #cfccc2;
  --yellow: #f5c542;
  --yellow-hover: #f0b917;
  --yellow-soft: #fdf3d3;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05), 0 4px 12px rgba(17, 17, 17, .04);
  --shadow: 0 1px 3px rgba(17, 17, 17, .05), 0 12px 32px rgba(17, 17, 17, .08);
  --shadow-lg: 0 2px 6px rgba(17, 17, 17, .04), 0 28px 64px rgba(17, 17, 17, .12);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

main { flex: 1; }

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; }

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--yellow);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
[tabindex="-1"]:focus { outline: none; }

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.025em;
  text-decoration: none;
}
.brand img { border-radius: 9px; }
.brand b {
  font-weight: 800;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 5px;
  padding: 0 .2em;
  margin-left: .08em;
}
.brand-dark { color: var(--white); }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

/* The home page shows the big name right below. */
.home .topbar .brand { visibility: hidden; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topnav a:not(.btn) {
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink-2);
  text-decoration: none;
}
.topnav a:not(.btn):hover,
.topnav a[aria-current="page"] { color: var(--ink); }

/* Signed-in indicator */

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .25rem .9rem .25rem .3rem;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .15s ease;
}
.account-chip:hover { border-color: var(--ink); }

.account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  font-weight: 800;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
}
/* Green "online" dot */
.account-avatar::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -1px;
  width: 11px; height: 11px;
  background: #22a559;
  border: 2px solid var(--white);
  border-radius: 50%;
}

.account-text { display: grid; line-height: 1.15; }
.account-status {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1b8a49;
}
.account-name { font-size: .95rem; font-weight: 700; }

.sidebar-account {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding: .85rem;
  background: #1f1f1f;
  border: 1px solid #2c2c2c;
  border-radius: var(--radius-sm);
}
.sidebar-account .account-avatar::after { border-color: #1f1f1f; }
.sidebar-account-name { font-weight: 700; }
.sidebar-account-status { font-size: .82rem; color: #a3a3a3; overflow-wrap: anywhere; }

.sidebar-logout {
  margin-top: 1rem;
  min-height: 48px;
  padding: 0 .85rem;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--white);
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.sidebar-logout:hover { border-color: var(--yellow); color: var(--yellow); }

.form-error {
  padding: .75rem 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: #8a1c1c;
  background: #fdecec;
  border: 1px solid #f3c1c1;
  border-radius: var(--radius-sm);
}
.form-error a { color: inherit; }

.menu-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-btn:hover { border-color: var(--ink); }

.menu-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}
.menu-icon i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- Sidebar ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(17, 17, 17, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.scrim.show { opacity: 1; }

.sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 50;
  width: min(340px, 86vw);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow-y: auto;
  background: var(--ink);
  color: var(--white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.sidebar.open {
  transform: none;
  visibility: visible;
  transition: transform .25s ease;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.sidebar-title img { border-radius: 8px; }

.close-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--white);
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.close-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.close-btn svg { width: 18px; height: 18px; }

.sidebar-links {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 2px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 52px;
  padding: 0 .85rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.sidebar-links a:hover { background: #222; }
.sidebar-links a[aria-current="page"] {
  background: var(--yellow);
  color: var(--ink);
}


.sidebar-contact {
  margin-top: auto;
  padding: 1.25rem .85rem 0;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  border-top: 1px solid #2c2c2c;
}
.sidebar-contact:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn { text-align: center; line-height: 1.25; text-wrap: balance; }
.btn svg { flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--yellow); }
.btn-primary:hover { background: var(--yellow-hover); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2b2b2b; }

.btn-ghost {
  background: var(--white);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .95rem; }
.btn-block { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 40px;
  padding: 0 .25rem;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
  background: none;
  border: 0;
  cursor: pointer;
}
a.link-btn { text-decoration: none; }
.link-btn:hover { color: var(--ink); }

.soon {
  display: inline-block;
  padding: .2rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--yellow-soft);
  border: 1px solid #f0dc9c;
  border-radius: 999px;
}

.preview-note {
  padding: .85rem 1rem;
  font-size: .95rem;
  background: var(--yellow-soft);
  border: 1px solid #f0dc9c;
  border-radius: var(--radius-sm);
}

.sample-tag {
  font-size: .82rem;
  color: var(--ink-3);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
}

/* ---------- Hero (home): brand + what we do + quiz ---------- */

.hero {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0 clamp(3rem, 4vw, 3.25rem);
  background:
    radial-gradient(circle at 1px 1px, #e3e0d6 1px, transparent 0) 0 0 / 22px 22px,
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
  .hero .wordmark { font-size: clamp(2.6rem, 4.6vw, 4.1rem); }
}

.wordmark {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  font-size: clamp(2.4rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}

.wordmark-logo {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  border-radius: .26em;
  box-shadow: var(--shadow);
}

.wordmark-ai {
  background: var(--yellow);
  border-radius: .14em;
  padding: 0 .12em;
  margin-left: .06em;
  letter-spacing: -.03em;
}

.motto {
  margin-top: clamp(.9rem, 2vw, 1.25rem);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
}

.motto mark {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  color: var(--ink);
  font-weight: 700;
  padding: 0 .08em;
}

/* What we do */

.about {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line-strong);
}

.about-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink);
}
.about-title::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow-hover);
}

.about-text {
  margin-top: .85rem;
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- Quiz ---------- */

.quiz-intro {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .75rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -.015em;
  text-align: center;
}

.quiz-arrow {
  width: 30px;
  height: 42px;
  flex-shrink: 0;
  margin-top: .4em;
  color: var(--yellow-hover);
}

.quiz {
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 90px;
}

.quiz-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 40px;
}
.quiz-top #quiz-back { grid-column: 1; justify-self: start; }
.step-label {
  grid-column: 2;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-align: center;
}
.quiz-top .skip { grid-column: 3; justify-self: end; }

.progress-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  margin: .75rem 0 clamp(1.5rem, 4vw, 2.25rem);
}
.progress-bar span {
  height: 6px;
  background: #ece9e1;
  border-radius: 999px;
  transition: background .25s ease;
}
.progress-bar span.on { background: var(--yellow); }

.quiz-question {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.options {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
/* Odd number of answers: the last one fills the whole row. */
.options li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.option {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .15rem;
  padding: 1rem 2.5rem 1rem 1.1rem;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.option::after {
  content: "";
  position: absolute;
  right: 1.15rem; top: 50%;
  width: 9px; height: 9px;
  border-top: 2px solid var(--ink-3);
  border-right: 2px solid var(--ink-3);
  transform: translateY(-50%) rotate(45deg);
  transition: right .15s ease, border-color .15s ease;
}
.option:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.option:hover::after { right: .95rem; border-color: var(--ink); }
.option:active,
.option.picked {
  background: var(--yellow-soft);
  border-color: var(--yellow-hover);
}

.option-label {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}
.option-hint {
  font-size: .92rem;
  color: var(--ink-3);
}

/* Draft preview (after the quiz) */

.quiz-preview {
  display: grid;
  gap: 1rem;
}

.preview-label {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.preview-label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.preview-label.is-improved {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow-hover);
}
.preview-label.is-improved::before { background: var(--ink); }

.change-group { display: grid; gap: .5rem; }
.change-lead { font-size: .85rem; color: var(--ink-3); }

.change-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.change-list li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.change-list li.change-on {
  color: var(--ink);
  background: var(--yellow-soft);
  border-color: #f0dc9c;
  animation: pop-in .35s ease both;
}
.preview-line {
  font-size: clamp(1.15rem, 2.4vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: none; }
}

/* The draft site itself. Everything inside is sized in cqw (1% of the draft's
   width), so it shrinks like a screenshot on small screens. */

.mock {
  container-type: inline-size;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #222;
}

.m-bar {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 2cqw 3cqw;
  background: #efede6;
  border-bottom: 1px solid var(--line);
}
.m-bar i {
  width: 2.2cqw; height: 2.2cqw;
  border-radius: 50%;
  background: #d6d3ca;
}
.m-url {
  flex: 1;
  margin-left: 2cqw;
  padding: .9cqw 3cqw;
  font-size: 2.6cqw;
  color: var(--ink-3);
  background: var(--white);
  border-radius: 99px;
}

.m-page { padding-bottom: 4cqw; }

.m-strip {
  padding: 1.6cqw 3cqw;
  font-size: 2.7cqw;
  font-weight: 700;
  text-align: center;
  color: var(--yellow);
  background: var(--ink);
}

.m-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.6cqw 4cqw;
  border-bottom: 1px solid #eee;
}
.m-nav b { font-size: 3.3cqw; }
.m-nav span { font-size: 2.4cqw; color: #888; }

.m-hero {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 4cqw;
  padding: 4cqw;
  align-items: start;
}

.m-img {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #f4f2ec;
  border-radius: 2cqw;
}
.m-img svg { width: 62%; }
.m-img-loading {
  align-content: center;
  gap: 2cqw;
  background: #ebe9e2;
}
.m-img-loading span {
  width: 60%;
  height: 2.4cqw;
  border-radius: 99px;
  background: #dcd9d0;
}
.m-img-loading span:nth-child(2) { width: 45%; }
.m-img-loading span:nth-child(3) { width: 30%; }
.m-fast {
  position: absolute;
  left: 2cqw; bottom: 2cqw;
  padding: .7cqw 1.8cqw;
  font-size: 2.2cqw;
  font-weight: 700;
  color: var(--white);
  background: #1b8a49;
  border-radius: 99px;
}

.m-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.8cqw;
  min-width: 0;
}
.m-name { font-size: 3.6cqw; font-weight: 500; color: #555; }
.m-headline {
  font-size: 4.5cqw;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #111;
}
.m-name-small { margin-top: -1cqw; font-size: 2.6cqw; color: #888; }

.m-stars { display: inline-block; font-size: 2.5cqw; color: #444; }
.m-stars span { color: #f0b917; letter-spacing: .1em; }

.m-price { font-size: 3.2cqw; font-weight: 600; color: #333; }
.m-price-big { font-size: 5.2cqw; font-weight: 800; color: #111; }
.m-price-hidden { font-size: 2.6cqw; font-weight: 500; font-style: italic; color: #999; }

.m-btn {
  display: inline-block;
  padding: 1.3cqw 3cqw;
  font-size: 2.7cqw;
  color: #666;
  background: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 1cqw;
}
.m-btn-bold {
  padding: 2.2cqw 4cqw;
  font-size: 3cqw;
  font-weight: 800;
  color: #111;
  background: var(--yellow);
  border-color: var(--yellow-hover);
  border-radius: 1.6cqw;
  box-shadow: 0 1cqw 2cqw rgba(240, 185, 23, .35);
}

.m-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqw 2.5cqw;
  font-size: 2.3cqw;
  font-weight: 600;
  color: #1b7a40;
}

.m-quote {
  margin: 0 4cqw 2.5cqw;
  padding: 2.4cqw 3cqw;
  font-size: 2.7cqw;
  line-height: 1.4;
  background: #fdf3d3;
  border-radius: 1.6cqw;
}
.m-quote b { font-weight: 700; white-space: nowrap; }

.m-email {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  margin: 0 4cqw 2.5cqw;
  padding: 2cqw 2.4cqw;
  font-size: 2.5cqw;
  border: 1px solid #e5e2d8;
  border-radius: 1.6cqw;
}
.m-email span { flex: 1; font-weight: 700; }
.m-email i {
  padding: .9cqw 2cqw;
  font-style: normal;
  color: #aaa;
  border: 1px solid #ddd;
  border-radius: 1cqw;
}
.m-email b {
  padding: .9cqw 2.4cqw;
  color: var(--white);
  background: #111;
  border-radius: 1cqw;
}

.m-reward {
  display: inline-block;
  margin: 0 4cqw;
  padding: 1.2cqw 2.6cqw;
  font-size: 2.5cqw;
  font-weight: 700;
  color: var(--yellow);
  background: #111;
  border-radius: 99px;
}

.m-filler { display: grid; gap: 1.8cqw; padding: 0 4cqw; }
.m-filler i {
  height: 2.2cqw;
  border-radius: 99px;
  background: #efefef;
}
.m-filler i:nth-child(2) { width: 80%; }
.m-filler i:nth-child(3) { width: 55%; }

/* Added parts: yellow outline so they stand out. */
.mock .add {
  position: relative;
  outline: .6cqw solid var(--yellow);
  outline-offset: .8cqw;
  border-radius: 1.2cqw;
}
.mock.is-improved .add { animation: pop-in .4s ease both; }
.mock .m-strip.add { outline-offset: -.6cqw; border-radius: 0; }

.result-scan {
  display: grid;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.result-scan .cta-text { margin-bottom: 0; }
.result-scan .btn-block { min-height: 56px; font-size: 1.1rem; }
.result-scan .link-btn { justify-self: center; }

.cta-text {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* ---------- Get started steps (home) ---------- */

.how {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem);
  scroll-margin-top: 100px;
}

/* Three round arrows sitting on the edge between the hero and this section. */
.scroll-cue {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  gap: clamp(.75rem, 3vw, 1.5rem);
  transform: translate(-50%, -50%);
  text-decoration: none;
}

.cue {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--ink);
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: nudge 1.8s ease-in-out infinite;
}
.cue:nth-child(2) { animation-delay: .2s; }
.cue:nth-child(3) { animation-delay: .4s; }
.scroll-cue:hover .cue { background: var(--yellow-hover); }

@keyframes nudge {
  0%, 100% { transform: none; }
  50%      { transform: translateY(6px); }
}

.how-title {
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  background: #1c1c1c;
  border: 1px solid #2c2c2c;
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
}

.step-num {
  margin-bottom: 1rem;
  padding: .3rem .75rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
}

.steps p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #b8b8b8;
}
.steps strong { color: var(--white); font-weight: 700; }

.how-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.25rem, 5vw, 3rem);
}

.btn-lg {
  min-height: 64px;
  padding: 0 2.25rem;
  font-size: 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 0 0 6px rgba(245, 197, 66, .18);
}
.btn-lg svg { transition: transform .15s ease; }
.btn-lg:hover svg { transform: translateX(3px); }

.home .footer { border-top: 1px solid #2c2c2c; }

/* ---------- Inner pages ---------- */

.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }

.page-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.page-head h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.page-head p {
  margin-top: .75rem;
  font-size: 1.15rem;
  color: var(--ink-2);
}

/* Pricing */

.plans {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 860px;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.plan h2,
.plan h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.plan .btn { margin-top: auto; }

.plan-featured {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.plan-featured .perks li::before { border-color: var(--yellow); }
.plan-featured .plan-desc { color: #b8b8b8; }
.plan-featured .price-term { color: #b8b8b8; }
.plan-featured .price-old { color: #8a8a8a; }
.plan-featured .price-now { color: var(--white); }
.plan-featured .deal { background: rgba(245, 197, 66, .14); border-color: rgba(245, 197, 66, .4); color: var(--yellow); }

.plan-badge {
  align-self: flex-start;
  padding: .2rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
}

.plan-desc { margin-top: -.6rem; color: var(--ink-2); }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .6rem;
}
.price-old {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration-thickness: 2px;
}
.price-now {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
}
.price-term { font-weight: 500; color: var(--ink-3); }

.deal {
  align-self: flex-start;
  margin-top: -.35rem;
  padding: .3rem .75rem;
  font-size: .88rem;
  font-weight: 700;
  color: #7a5a00;
  background: var(--yellow-soft);
  border: 1px solid #f0dc9c;
  border-radius: 999px;
}

.perks {
  list-style: none;
  margin: 0 0 .75rem; padding: 1rem 0 0;
  display: grid;
  gap: .6rem;
  border-top: 1px solid var(--line);
}
.plan-featured .perks { border-color: #2c2c2c; }
.perks li {
  padding-left: 1.6rem;
  position: relative;
}
.perks li::before {
  content: "";
  position: absolute;
  left: .1rem; top: .35em;
  width: .85rem; height: .45rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.page-head-center { text-align: center; }

.credits-note {
  margin-top: 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink-2);
}
.credits-note + .fine-print { margin-top: .4rem; }
.credits-note + .modal-note { margin-top: .35rem; }
.pricing-modal .credits-note { margin-top: 1.1rem; font-size: .9rem; }

.fine-print {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* Log in / sign up */

.auth-wrap { display: grid; place-items: center; }

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: clamp(1.75rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.auth-sub { margin-top: -.5rem; color: var(--ink-2); }
.auth-notice {
  padding: .75rem 1rem;
  font-size: .95rem;
  font-weight: 600;
  background: var(--yellow-soft);
  border: 1px solid #f0dc9c;
  border-radius: var(--radius-sm);
}

.field { display: grid; gap: .4rem; }
.field span { font-weight: 600; font-size: .95rem; }
.field small { color: var(--ink-3); font-size: .85rem; }
.field input {
  min-height: 50px;
  padding: 0 .9rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}

.auth-switch { text-align: center; font-size: .95rem; color: var(--ink-2); }
.auth-switch a { font-weight: 700; color: var(--ink); }
.auth-legal { text-align: center; font-size: .82rem; color: var(--ink-3); }

/* Success */

.success {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(1rem, 5vw, 3rem);
}
.success-check {
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  margin-bottom: 1.5rem;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 10px var(--yellow-soft);
}
.success-check svg { width: 44px; height: 44px; }
.success h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 6.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.success-plan {
  background: var(--yellow);
  border-radius: .12em;
  padding: 0 .14em;
}
.success-sub {
  margin: 1rem 0 2rem;
  font-size: 1.2rem;
  color: var(--ink-2);
}

/* Workspace */

.workspace-page {
  padding: 1.25rem 0 2rem;
  background: var(--paper);
}

.workspace {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.25rem;
  height: clamp(560px, calc(100vh - 68px - 3.25rem), 940px);
}

.phone-only { display: none !important; }

/* Left panel */

.ws-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-y: auto;
}

.ws-label {
  margin-bottom: .6rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
}

.ws-empty { font-size: .92rem; color: var(--ink-3); }


.ws-side-foot {
  margin-top: auto;
  display: grid;
  gap: .5rem;
  justify-items: start;
}

/* Chat panel */

.chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.chat-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.chat-sub { font-size: .92rem; color: var(--ink-3); }
.chat-head-actions { display: flex; align-items: center; gap: .25rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.thread {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
}

.msg {
  display: flex;
  gap: .75rem;
  max-width: 760px;
  animation: msg-in .25s ease both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.avatar {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
}

.bubble {
  display: grid;
  gap: .6rem;
  min-width: 0;
  padding: .9rem 1.1rem;
  font-size: 1rem;
  line-height: 1.55;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px var(--radius) var(--radius) var(--radius);
}

.msg-user {
  align-self: flex-end;
  max-width: min(560px, 85%);
}
.msg-user .bubble {
  background: var(--yellow-soft);
  border-color: #f0dc9c;
  border-radius: var(--radius) 4px var(--radius) var(--radius);
}


/* Screenshots + link inside a user message */

.shots {
  display: flex;
  gap: .6rem;
  align-items: flex-end;
}
.shot { margin: 0; }
.shot img {
  display: block;
  object-fit: cover;
  object-position: top;
  border: 1px solid #e8d59a;
  border-radius: var(--radius-sm);
  background: var(--white);
}
.shot-phone img { width: 78px; height: 150px; }
.shot-laptop img { width: 210px; height: 132px; }
.shot figcaption {
  margin-top: .25rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-3);
}

.url-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  justify-self: start;
  max-width: 100%;
  padding: .3rem .7rem;
  font-size: .9rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid #e8d59a;
  border-radius: 999px;
  overflow-wrap: anywhere;
}
.url-chip svg { flex-shrink: 0; }

/* Loading */

.loading-bubble { min-width: min(420px, 100%); }

.loading-head {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.spinner {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 3px solid #ece9e1;
  border-top-color: var(--yellow-hover);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-status { font-weight: 700; }
.loading-status.swap { animation: fade-swap .4s ease both; }
@keyframes fade-swap {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.loading-bar {
  height: 4px;
  overflow: hidden;
  background: #ece9e1;
  border-radius: 999px;
}
.loading-bar span {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--yellow);
  border-radius: inherit;
  animation: slide 1.3s ease-in-out infinite;
}
@keyframes slide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(300%); }
}

.loading-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: .35rem;
  font-size: .88rem;
  color: var(--ink-3);
}
.loading-steps li {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.loading-steps li::before {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}
.loading-steps li.active { color: var(--ink); font-weight: 600; }
.loading-steps li.active::before {
  border-color: var(--yellow-hover);
  background: var(--yellow-soft);
}
.loading-steps li.done { color: var(--ink-2); }
.loading-steps li.done::before {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23f5c542' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Reply */

.reply { gap: .85rem; position: relative; }
.reply-body { display: grid; gap: .85rem; min-width: 0; }

.fix-count {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* Locked scan: blur the answer and show an unlock card on top */
.reply.is-locked .reply-body {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  max-height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
          mask-image: linear-gradient(#000 55%, transparent);
}

.unlock {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: min(340px, calc(100% - 2rem));
  display: grid;
  justify-items: center;
  gap: .4rem;
  padding: 1.25rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.unlock > svg {
  width: 40px; height: 40px;
  padding: 9px;
  margin-bottom: .2rem;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
}
.unlock-title { font-weight: 800; }
.unlock-text { font-size: .9rem; color: var(--ink-2); margin-bottom: .4rem; }
.unlock .btn { width: 100%; min-height: 46px; }

.reply.just-unlocked .reply-body { animation: unblur .6s ease both; }
@keyframes unblur {
  from { filter: blur(7px); opacity: .6; }
  to   { filter: none; opacity: 1; }
}

/* Pricing pop-up */

.pricing-modal {
  width: min(880px, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.pricing-modal[open] { animation: modal-in .25s ease both; }
.pricing-modal::backdrop {
  background: rgba(17, 17, 17, .55);
  backdrop-filter: blur(3px);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  color: var(--ink);
  background: var(--white);
  border-color: var(--line-strong);
}
.modal-close:hover { color: var(--ink); border-color: var(--ink); }

.modal-head {
  margin-bottom: 1.5rem;
  text-align: center;
}
.modal-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.modal-head h2 {
  margin: .25rem 0 .35rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.modal-head p:last-child { color: var(--ink-2); }

.modal-plans .plan { padding: 1.5rem; }
.modal-plans .btn { min-height: 50px; }

.modal-note {
  margin-top: 1rem;
  font-size: .8rem;
  text-align: center;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .modal-plans { grid-template-columns: 1fr; }
}

.preview-flag {
  justify-self: start;
  padding: .15rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--yellow-soft);
  border: 1px solid #f0dc9c;
  border-radius: 999px;
}

.reply-summary { font-weight: 600; }

.reply-label {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
}

.findings {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: .5rem;
}
.findings li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .8rem .9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.finding-stat {
  flex-shrink: 0;
  min-width: 3.4rem;
  padding: .2rem .4rem;
  font-weight: 800;
  text-align: center;
  color: var(--yellow);
  background: var(--ink);
  border-radius: 6px;
}
.findings h4 { margin: 0 0 .15rem; font-size: .98rem; }
.findings p { font-size: .92rem; color: var(--ink-2); }

.code-block {
  overflow: hidden;
  background: #151515;
  border-radius: var(--radius-sm);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .5rem .45rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: #a3a3a3;
  border-bottom: 1px solid #2a2a2a;
}
.code-copy {
  min-height: 32px;
  padding: 0 .75rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.code-block pre {
  margin: 0;
  padding: .9rem;
  overflow-x: auto;
  font: .82rem/1.55 ui-monospace, "Cascadia Code", Consolas, monospace;
  color: #e9e9e9;
}

/* Composer */

.composer {
  display: grid;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.attach-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: .6rem;
}

.slot { position: relative; }

.slot-pick {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 52px;
  padding: 0 .9rem;
  font-size: .9rem;
  color: var(--ink-2);
  background: var(--paper);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.slot-pick svg { flex-shrink: 0; color: var(--ink); }
.slot-text b { color: var(--ink); }
.slot-pick:hover,
.slot.drag .slot-pick,
.slot input:focus-visible + .slot-pick {
  border-color: var(--ink);
  background: var(--yellow-soft);
}
.slot input:focus-visible + .slot-pick { outline: 3px solid var(--ink); outline-offset: 2px; }

.slot.filled .slot-pick {
  border-style: solid;
  border-color: var(--yellow-hover);
  background: var(--yellow-soft);
  padding-right: 2.25rem;
}
.slot-thumb {
  height: 38px;
  width: auto;
  max-width: 60px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  border: 1px solid #e8d59a;
}

.slot-remove {
  position: absolute;
  top: 50%; right: .5rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.link-field {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 52px;
  padding: 0 .9rem;
  color: var(--ink-3);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.link-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--yellow-soft);
  color: var(--ink);
}
.link-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  outline: none;
}

/* "Recommended & easiest" pop-up tag on the link field */
.link-field {
  position: relative;
  border-color: var(--yellow-hover);
}
.link-tag {
  position: absolute;
  top: 0;
  right: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(17, 17, 17, .15);
  transform: translateY(-55%);
  pointer-events: none;
  animation: tag-pop .5s cubic-bezier(.3, 1.6, .5, 1) .3s both;
  transition: opacity .2s ease;
}
/* Little pointer under the tag */
.link-tag::after {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: -4px;
  width: 8px; height: 8px;
  background: var(--yellow);
  transform: rotate(45deg);
}
@keyframes tag-pop {
  from { opacity: 0; transform: translateY(-20%) scale(.8); }
  to   { opacity: 1; transform: translateY(-55%) scale(1); }
}
/* Hide once they've typed a link */
.link-field:has(input:not(:placeholder-shown)) .link-tag { opacity: 0; }

.composer-main {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
  padding: .45rem .45rem .45rem .9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.composer-main:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}

.composer-main textarea {
  flex: 1;
  min-height: 44px;
  max-height: 180px;
  padding: .6rem 0;
  font: inherit;
  line-height: 1.45;
  color: var(--ink);
  background: none;
  border: 0;
  outline: none;
  resize: none;
}

.send-btn { min-height: 46px; padding: 0 1.25rem; }

.composer-hint { font-size: .8rem; color: var(--ink-3); }

/* Saved screenshot (reopened from Memory) */

.shot-pill {
  padding: .25rem .65rem;
  font-size: .82rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid #e8d59a;
  border-radius: 999px;
}
.shots:has(.shot-pill) { flex-wrap: wrap; gap: .4rem; }

/* Project lists (sidebar "Recent" + Memory panel) */

.project-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: .35rem;
}
.project {
  width: 100%;
  display: grid;
  gap: .1rem;
  padding: .6rem .75rem;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.project:hover {
  background: var(--paper);
  border-color: var(--line);
}
.project-title {
  font-size: .95rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-meta { font-size: .8rem; color: var(--ink-3); }
#recent-all { margin-top: .25rem; padding: 0; min-height: 32px; }

/* Memory button + panel */

.memory-btn { gap: .45rem; }
.memory-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 .35rem;
  font-size: .75rem;
  font-weight: 800;
  background: var(--yellow);
  border-radius: 999px;
}

.chat { position: relative; }

.memory-scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(17, 17, 17, .25);
}

.memory {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  z-index: 6;
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  overflow-y: auto;
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: memory-in .2s ease both;
}
@keyframes memory-in {
  from { transform: translateX(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.memory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.memory-head h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.memory-head p { font-size: .88rem; color: var(--ink-3); }
.memory .close-btn { color: var(--ink); border-color: var(--line-strong); flex-shrink: 0; }
.memory .close-btn:hover { color: var(--ink); border-color: var(--ink); }

.memory-list .project {
  border-color: var(--line);
  padding: .75rem .9rem;
}

.memory-empty {
  display: grid;
  justify-items: center;
  gap: .35rem;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-3);
  background: var(--paper);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
}
.memory-empty svg { color: var(--ink-3); margin-bottom: .25rem; }
.memory-empty strong { color: var(--ink); }

.memory-clear { align-self: flex-start; margin-top: auto; padding: 0; }

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
    height: calc(100svh - 68px - 1.5rem);
    min-height: 520px;
  }
  .ws-side { display: none; }
  .phone-only { display: grid !important; }
  .chat-head-actions .link-btn.phone-only { display: inline-flex !important; }
}

@media (max-width: 640px) {
  .workspace-page { padding: .75rem 0 1rem; }
  .workspace { width: calc(100% - 1.25rem); }
  .chat-head { padding: .85rem 1rem; }
  .chat-sub { display: none; }
  .thread { padding: 1rem; }
  .avatar { width: 28px; height: 28px; }
  .msg-user { max-width: 92%; }
  .shot-laptop img { width: 150px; height: 94px; }
  .shot-phone img { width: 56px; height: 108px; }
  .composer { padding: .75rem; }
  .attach-row { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .link-field { grid-column: 1 / -1; height: 48px; }
  .slot-pick { height: 48px; padding: 0 .7rem; font-size: .85rem; }
  .send-btn { padding: 0 1rem; }
  .composer-hint { display: none; }
  .slot-word { display: none; }
  .slot-pick { justify-content: center; }
  .loading-bubble { min-width: 0; }
  .msg-ai { max-width: 100%; }
  .msg-ai .bubble { flex: 1; }
  .memory-word { display: none; }
  .memory-btn { padding: 0 .7rem; }
}

/* Account settings */

.settings { max-width: 720px; display: grid; gap: 1.25rem; }
.settings .page-head { margin-bottom: .75rem; }

.settings-card {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.settings-card-head h2 { font-size: 1.2rem; font-weight: 700; }
.settings-card-head p { margin-top: .2rem; font-size: .95rem; color: var(--ink-2); }

.settings-form { display: grid; gap: 1rem; }
.settings-actions { display: flex; align-items: center; gap: 1rem; }
.saved-note { font-weight: 700; color: #1b8a49; }

.plan-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.plan-status-name { font-weight: 700; }
.plan-chip {
  padding: .1rem .5rem;
  background: var(--yellow);
  border-radius: 6px;
}

.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.contact-email { font-size: .95rem; color: var(--ink-2); }
.contact-email a { font-weight: 700; color: var(--ink); }

.danger-card { border-color: #f3c1c1; }
.danger-card .btn { justify-self: start; }
.danger-text { margin-top: -.4rem; font-size: .95rem; color: #8a1c1c; }

.btn-danger { background: #c62828; color: var(--white); }
.btn-danger:hover { background: #a61f1f; }
.btn-danger:disabled { background: #c62828; }

/* Confirm delete pop-up */

.confirm-modal {
  width: min(440px, calc(100% - 1.5rem));
  padding: 1.75rem;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.confirm-modal[open] { display: grid; gap: .9rem; animation: modal-in .2s ease both; }
.confirm-modal::backdrop { background: rgba(17, 17, 17, .55); backdrop-filter: blur(3px); }
.confirm-modal h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.confirm-modal > p { color: var(--ink-2); }
.confirm-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  color: #c62828;
  background: #fdecec;
  border-radius: 50%;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: .25rem;
}

/* One-time message (e.g. "Your account has been deleted.") */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 60;
  transform: translateX(-50%);
  padding: .8rem 1.25rem;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: modal-in .25s ease both;
  transition: opacity .5s ease;
}
.toast-hide { opacity: 0; }

@media (max-width: 640px) {
  .settings-actions .btn, .danger-card .btn, .contact-row .btn { width: 100%; }
  .confirm-actions { flex-direction: column-reverse; }
  .confirm-actions .btn { width: 100%; }
}

/* Privacy / terms */

.legal { max-width: 720px; }
.legal .preview-note { margin-bottom: 2rem; }
.legal h2 {
  margin: 2.25rem 0 .5rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.legal p { color: var(--ink-2); }
.legal p + p { margin-top: .75rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand p {
  margin-top: .75rem;
  max-width: 32ch;
  font-size: .95rem;
  color: #a3a3a3;
}

.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.75rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: #d6d6d6;
  text-decoration: none;
}
.footer-links a:hover { color: var(--yellow); }

.footer-links .footer-contact {
  padding: 0 1.25rem;
  color: var(--ink);
  background: var(--yellow);
  border-radius: var(--radius-sm);
}
.footer-links .footer-contact:hover { background: var(--yellow-hover); color: var(--ink); }

.footer-small {
  width: 100%;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: #8a8a8a;
  border-top: 1px solid #2c2c2c;
}

/* ---------- Tablets ---------- */

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-featured { order: -1; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  body { font-size: 1rem; }

  .topnav { display: none; }
  .account-chip { padding: .2rem; }
  .account-text { display: none; }

  .wordmark { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero { padding-top: 1.25rem; }
  .hero-grid { gap: 1.25rem; }
  .about { margin-top: 1.1rem; padding-top: 1rem; }
  .about-text { margin-top: .6rem; font-size: .97rem; line-height: 1.55; }
  .quiz-arrow { width: 24px; height: 34px; }


  .options { grid-template-columns: 1fr; }
  .option { min-height: 70px; }

  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
  .how-cta .btn { width: 100%; padding: .75rem 1.25rem; }
  .result-scan .btn-block { padding: .65rem 1rem; }


  .footer-inner { flex-direction: column; }
  .footer-inner > nav { width: 100%; }
  .footer-links { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .footer-links li:last-child { grid-column: 1 / -1; }
  .footer-links .footer-contact { width: 100%; justify-content: center; min-height: 50px; }
}

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