:root {
  --font: "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #ffffff;
  --text: #000000;
  --muted: #666666;
  --border: #000000;
  --ok: #81c995;
  --err: #f28b82;
}

* {
  box-sizing: border-box;
  text-transform: lowercase;
}

/* preserve traceUI (capital UI); global * rule would otherwise force “traceui” */
.logo,
.nav-brand .nav-link,
.brand-mark,
.footer-bg-text {
  text-transform: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.wrap {
  position: relative;
  padding: 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto; /* Centered layout */
}

@media (max-width: 768px) {
  .wrap {
    padding: 2.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 2rem 1rem;
  }
}

.header {
  margin-bottom: 2rem;
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-auth .nav-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.nav-auth__user-wrap {
  position: relative;
  z-index: 1002;
}

.nav-auth__signed-in-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-auth__quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #000;
  line-height: 1;
}

.nav-auth__quota-coin {
  flex-shrink: 0;
  color: #b45309;
}

.nav-auth__quota-text {
  min-width: 2.25ch;
}

/* Invisible hover bridge so the cursor can reach the dropdown without closing */
.nav-auth__user-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.nav-auth__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.55rem 0.2rem 0.25rem;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-auth__trigger:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-auth__pfp-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #3a3a3a, #7a7a7a);
}

.nav-auth__pfp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-auth__pfp-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.nav-auth__display-name {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-auth__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 10rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.nav-auth__user-wrap:hover .nav-auth__menu,
.nav-auth__user-wrap.is-menu-open .nav-auth__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-auth__menu-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: #000;
}

.nav-auth__menu-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

body.login-gate-open {
  overflow: hidden;
}

/* Shared copy + layout: URL gate modal, /login, /register (see auth-google-copy.js) */
.auth-google-page-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

.auth-google-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
}

.auth-google-page-wrap .auth-google-card {
  max-width: 400px;
  width: 100%;
  border: 4px solid #000;
  padding: 2.5rem;
  background: #fff;
}

.auth-google-title.logo {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.auth-google-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #333;
}

.auth-google-foot {
  margin: 0;
  font-size: 0.92rem;
  text-align: center;
  color: #444;
  line-height: 1.45;
}

.auth-google-btn {
  width: 100%;
  justify-content: center;
  gap: 0.65rem;
  box-sizing: border-box;
}

.auth-google-btn__icon {
  flex-shrink: 0;
  display: block;
}

.auth-google-page-wrap .auth-google-btn {
  margin-top: 0.25rem;
}

.auth-google-back {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-google-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.auth-google-back__link:hover {
  text-decoration: underline;
}

.auth-google-back__trace-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.login-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.login-gate-modal.hidden {
  display: none;
}

.login-gate-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.login-gate-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.75rem;
  background: #fff;
  border: 4px solid #000;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.12);
}

.login-gate-modal__panel.auth-google-card {
  gap: 1rem;
}

.login-gate-modal__x {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #000;
  border-radius: 4px;
}

.login-gate-modal__x:hover {
  background: rgba(0, 0, 0, 0.06);
}

.login-gate-modal__title,
h2.auth-google-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 2rem 0.5rem 0;
  letter-spacing: -0.03em;
}

.login-gate-modal__sub.auth-google-sub {
  margin: 0 0 1.25rem;
}

.login-gate-modal__sub {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #333;
}

.login-gate-modal__err {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  border: 2px solid #c00;
  color: #a00;
  background: #fff5f5;
}

.login-gate-google {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.login-gate-modal__alt.auth-google-foot {
  margin: 0;
}

.login-gate-modal__alt {
  margin: 0;
  font-size: 0.92rem;
  text-align: center;
  color: #444;
}

.login-gate-modal__alt a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 10001;
  max-width: min(90vw, 420px);
  padding: 0.85rem 1.25rem;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
}

.app-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Studio: session context — one line, no panel chrome */
.studio-session-strip {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}

.studio-session-strip #meta-url,
.studio-traced-site-card #meta-url {
  font-weight: 600;
  color: #222;
}

/* Numbered steps (ad studio form) */
.studio-step {
  margin-bottom: 2.5rem;
}

/* Steps 1 + 2: side-by-side (50% / 50%) on wide screens */
.studio-steps-row--half {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .studio-steps-row--half {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 0;
  }
}

.studio-steps-row--half > .studio-step {
  margin-bottom: 0;
  min-width: 0;
}

.studio-steps-row--half .studio-traced-site-card {
  max-width: 100%;
}

.studio-steps-row--half .inspiration-dropzone {
  max-width: 100%;
}

.studio-step-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  text-align: left;
}

.studio-col-center .studio-step-heading {
  justify-content: center;
  text-align: center;
}

.studio-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  border: 2px solid #000;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.studio-step-title-text {
  flex: 1;
  min-width: 0;
}

.studio-step-lede {
  max-width: 42rem;
  line-height: 1.45;
}

.studio-col-center .studio-step-lede {
  margin-left: auto;
  margin-right: auto;
}

.studio-step-micro {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.studio-traced-site-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #000;
  border-radius: 6px;
  background: #fafafa;
  max-width: 42rem;
  text-align: left;
}

.studio-traced-site-card__media {
  flex: 0 0 auto;
  width: 108px;
  height: 132px;
  align-self: flex-start;
  border-radius: 4px;
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.studio-traced-site-card__media.hidden {
  display: none;
}

.studio-traced-site-card__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.studio-traced-site-card__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.studio-traced-site-card__label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
}

.studio-traced-site-card__url-line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-word;
}

/* Studio: empty state — plain URL field (no hero / rotating border) */
.studio-empty-search .studio-empty-tagline {
  text-align: center;
  font-size: 1.05rem;
  color: #333;
}

.studio-crawl-form {
  max-width: 560px;
  margin: 0 auto;
}

.studio-search-basic {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.studio-search-basic .search-row {
  max-width: none;
}

.studio-search-basic .search-wrapper {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  padding: 0;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 0;
}

.studio-search-basic .search-wrapper::before,
.studio-search-basic .search-wrapper::after {
  display: none;
}

.studio-search-basic .search-bar {
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
}

.studio-search-basic .search-wrapper .go-button {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0.35rem 0.35rem 0.35rem 0;
}

.studio-search-basic .search-wrapper .go-button:hover {
  transform: none;
}

/* Studio page header: solid title, no shine animation */
.studio-header-title.logo {
  animation: none;
  background: none;
  background-size: auto;
  color: #000;
  -webkit-text-fill-color: #000;
  background-clip: border-box;
  -webkit-background-clip: border-box;
}

.studio-crawl-status {
  text-align: center;
  margin-top: 0.75rem !important;
}

.logo {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(110deg, #000 30%, #666 48%, #aaa 50%, #666 52%, #000 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shineLogo 3s linear infinite;
}

@keyframes shineLogo {
  to {
    background-position: 200% center;
  }
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0.2rem 0 0 0;
  color: #333;
}

.panel {
  margin-top: 2rem;
  border-radius: 4px;
}

.search-row {
  display: flex;
  align-items: stretch;
  max-width: 600px;
  width: 100%;
}

.crawl-opts {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  text-align: left;
  margin-top: 1.25rem;
  max-width: 600px;
  width: 100%;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #000;
  border-radius: 4px;
}

/* Reveal crawl options on type or focus */
.landing-form:has(.search-bar:not(:placeholder-shown)) .crawl-opts,
.landing-form:has(.search-bar:focus) .crawl-opts {
  display: block;
  animation: fadeInOpts 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInOpts {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.crawl-opts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: flex-end;
  margin-bottom: 0.85rem;
}

.crawl-opt {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #222;
}

.crawl-opt-label {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crawl-opt input[type="number"] {
  width: 4.75rem;
  padding: 0.45rem 0.5rem;
  border: 2px solid #000;
  font-size: 1rem;
  background: #fff;
}

.yc-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.yc-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.crawl-opt-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 52ch;
}

.crawl-opt-check input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.crawl-opt-check input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.crawl-opts-hint {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: #444;
  line-height: 1.45;
}

.search-wrapper {
  flex: 1;
  position: relative;
  /* transparent so the rotating ::before shows in the 2px padding ring */
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px;
  overflow: hidden;
  border-radius: 4px;
}

.search-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1500px;
  height: 1500px;
  background: conic-gradient(
    from 0deg,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.12) 40%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.12) 60%,
    rgba(0, 0, 0, 0.12)
  );
  animation: spinBorder 4s linear infinite;
  transform-origin: center;
  z-index: 0;
  pointer-events: none;
}

.search-wrapper::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

@keyframes spinBorder {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.search-bar {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  padding: 1.25rem 1rem 1.25rem 1.5rem;
  font-size: 1.15rem;
  color: #000;
  outline: none;
  position: relative;
  z-index: 2;
}

.search-wrapper .go-button {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 0;
  margin: 0 0.45rem 0 0;
  padding: 0;
  z-index: 2;
  border-radius: 2px;
  border-width: 2px;
}

.search-wrapper .go-button:hover {
  transform: scale(1.04);
}

.search-wrapper .go-button:active {
  transform: scale(0.98);
}

.search-bar::placeholder {
  color: #333;
}

button {
  position: relative;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #000000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

button:hover::before {
  width: 300%;
  padding-top: 300%;
}

button:hover {
  color: #ffffff;
}

.go-button .arrow {
  display: inline-block;
  transition: transform 0.4s ease;
  font-size: 1.5rem;
}

.go-button:hover .arrow {
  transform: rotate(-45deg);
  color: #ffffff;
}

.hidden {
  display: none !important;
}

.status {
  margin-top: 3rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 2px solid #000000;
  font-weight: 500;
  max-width: 800px;
  font-size: 1.1rem;
  border-radius: 4px;
}
.status.error {
  border-color: red;
  color: red;
}

h2 {
  font-size: 2rem;
  margin: 3rem 0 1rem;
}

.report, .shots {
  margin-top: 1.5rem;
  max-width: 800px;
  background: #ffffff;
  border: 2px solid #000000;
  padding: 2rem;
  font-size: 1rem;
  border-radius: 4px;
}

.shots img {
  max-width: 100%;
  border: 2px solid #000;
  margin-bottom: 2rem;
}

.ad-banner {
  margin-top: 3rem;
  padding: 1.25rem;
  background: #fff;
  border: 2px solid #000;
  font-weight: 600;
  max-width: 800px;
  font-size: 1.1rem;
}

.ad-banner a {
  display: inline-block;
  color: #fff;
  background: #000;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: opacity 0.2s;
}

.ad-banner a:hover {
  opacity: 0.8;
}

.ad-session-id {
  display: block;
  margin-top: 1rem;
  font-family: monospace;
  color: #666;
}

a {
  color: #000;
}

a:hover {
  text-decoration: none;
}

/* Base styles derived from old file for elements like pick-list, selected-shot-tile to not break completely */
.nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.nav a {
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  border-bottom: 2px solid #000;
}

/* Ad Studio Layout & Structure */
.panel {
  background: #ffffff;
  border: 2px solid #000000;
  padding: 1.25rem;
  margin-top: 1.5rem;
  border-radius: 4px;
}

.panel-inner {
  background: #fdfdfd;
  border: 2px solid #000000;
  padding: 1rem;
}

.lede {
  color: #666;
  max-width: 800px;
  font-size: 1.1rem;
}

.hint {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.studio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .studio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dropdown-row {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0 1rem;
  align-items: flex-end;
}

.dropdown-group {
  flex: 1;
  min-width: 0;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #000;
  font-size: 0.9rem;
}

.aspect, .brief, .file-input {
  width: 100%;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.aspect:focus, .brief:focus, .file-input:focus {
  border-width: 2px;
  outline: 2px solid #000;
  outline-offset: -2px;
}

.brief {
  min-height: 120px;
  resize: vertical;
}

.studio-brief-title {
  margin-bottom: 0.35rem;
}

.studio-brief-hint {
  margin-bottom: 0.5rem;
}

.brief-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.brief-wrap .brief {
  padding-right: 3rem;
  box-sizing: border-box;
}

.brief-ai-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: 1px solid #000;
  border-radius: 6px;
  background: #fff;
  color: #000;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.brief-ai-btn:hover:not(:disabled) {
  background: #f4f4f4;
}

.brief-ai-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.brief-ai-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.brief-ai-btn.is-busy .brief-ai-icon {
  animation: brief-ai-pulse 0.9s ease-in-out infinite;
}

@keyframes brief-ai-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.92);
  }
}

.file-input {
  border: 2px dashed #000;
  cursor: pointer;
  margin-bottom: 1rem;
}

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

.inspiration-dropzone {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto 0.5rem;
}

.inspiration-dropzone__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 7.5rem;
  padding: 1.1rem 1rem;
  cursor: pointer;
  border: 2px dashed #000;
  border-radius: 8px;
  background: #fafafa;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.inspiration-dropzone--drag .inspiration-dropzone__label {
  background: #f3f3f3;
  border-style: solid;
}

.inspiration-dropzone__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111;
}

.inspiration-dropzone__or {
  font-size: 0.85rem;
  color: #666;
  text-transform: lowercase;
}

.inspiration-dropzone__browse {
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inspiration-dropzone__types {
  font-size: 0.78rem;
  color: #666;
  margin-top: 0.15rem;
}

.inspiration-dropzone__picked {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #333;
}

.action-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Base button clears previous pseudo element logic from .btn-dull / .btn-bright context */
.btn-dull, .btn-bright {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #000 !important;
  position: relative;
  z-index: 1;
  overflow: visible;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* dull button */
.btn-dull {
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.btn-dull:hover {
  background: #eee !important;
}

.btn-dull:before {
  display: none !important;
}

/* bright button */
.btn-bright {
  background: #2563eb !important; /* user said brighter, blue is nice. wait, user said "generate 1 dull and 5 a little brighter", and previously "following just black and white". "black theme", "brighter". I'll stick to black. But let me make it solid black. */
  background: #000 !important;
  color: #fff !important;
  box-shadow: 4px 4px 0px #aaa !important;
}

.btn-bright:before {
  display: none !important; /* remove bubble effect */
}

.btn-bright:hover {
  color: #fff !important;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #aaa !important;
}

/* UI details */
.pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
}

.pick-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem;
  border: 2px solid #000;
  background: #fff;
}

.pick-item img {
  width: 60px; /* Smaller screenshot previews */
  height: 60px;
  object-fit: cover;
  border: 2px solid #000;
}

.selected-shots-wrap {
  border-top: 2px solid #000;
  padding-top: 2rem;
}

.selected-shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.selected-shot-tile {
  background: #fff;
  border: 2px solid #000;
  padding: 0;
  cursor: pointer;
}

.selected-shot-tile img {
  width: 100%;
  height: 80px; /* Smaller */
  object-fit: cover;
  display: block;
}

.selected-shot-label {
  padding: 0.5rem;
  font-size: 0.75rem;
  color: #000;
  background: #eee;
  border-top: 2px solid #000;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gen-status {
  background: #fff;
  border: 2px solid #000;
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.gen-status-loading {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.gen-progress-track {
  height: 8px;
  background: #eee;
  border: 2px solid #000;
  margin-top: 0.5rem;
}

.gen-progress-bar {
  height: 100%;
  background: #000;
  width: 0;
}

.mockup-out {
  margin-top: 2rem;
}

.mockup-inline-thumb {
  max-width: 100%;
  height: auto;
  border: 2px solid #000;
  margin-bottom: 1rem;
}

.out-single-panel .out-single-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 320px;
}

.out-single-thumb {
  max-width: 100%;
  width: 100%;
  max-height: 360px;
  height: auto;
  object-fit: contain;
  border: 2px solid #000;
  cursor: pointer;
}

.out-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.suite-browser {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 860px) {
  .suite-browser {
    flex-direction: row;
  }
}

.suite-file-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.suite-file-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 2px solid #000;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.suite-file-row:hover {
  background: #eee;
}

.suite-file-row.is-selected {
  background: #000;
  color: #fff;
}

.suite-file-row.is-selected .suite-file-status {
  color: #ccc;
}

.suite-file-thumb-wrap {
  width: 60px;
  height: 60px;
  border: 2px solid #000;
  flex-shrink: 0;
}

.suite-file-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suite-preview-panel {
  flex: 2;
  border: 2px solid #000;
  padding: 1.5rem;
  background: #fff;
}

.suite-preview-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.suite-download-link {
  font-weight: bold;
  text-decoration: underline;
  align-self: center;
}

/* Lightbox — disable global button::before ripple (backdrop is a <button>; hover was painting black across the screen) */
.shot-lightbox button::before {
  display: none !important;
  content: none !important;
}

.shot-lightbox button:hover {
  color: inherit;
}

/* Lightbox */
.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.shot-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 100%;
  height: 100%;
  cursor: zoom-out;
}

.shot-lightbox-backdrop:hover {
  background: rgba(255, 255, 255, 0.94);
}

.shot-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  border: 2px solid #000;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.shot-lightbox-img {
  max-width: 100%;
  max-height: calc(90vh - 6rem);
  object-fit: contain;
}

.shot-lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-height: unset;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #000;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.shot-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
}

.go-button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

.go-button:active {
  transform: translateX(2px) scale(0.95);
}

.arrow {
  font-size: 1.4rem;
  line-height: 1;
  display: block;
}

.landing-form {
  position: relative;
  width: 100%;
  margin-top: 2rem;
}

.crawl-opts {
  display: none;
}

.landing-input:not(:placeholder-shown) ~ .crawl-opts,
.landing-input:focus ~ .crawl-opts {
  display: block;
}

.shot-lightbox-url {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  word-break: break-all;
}

.shot-lightbox-download {
  margin-top: 1rem;
  align-self: center;
  text-transform: none;
  letter-spacing: normal;
}

/* SVG Cards */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
}

.svg-card {
  flex: 1 1 calc(33% - 0.75rem);
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border: 2px solid #000;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  height: auto;
  min-height: 90px;
  border-radius: 4px;
}

.svg-card svg {
  margin-bottom: 0.5rem;
}

.svg-card span {
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1.2;
}

.svg-card:hover {
  background: #f0f0f0;
}

.svg-card.selected {
  background: #000;
  color: #fff;
}

.svg-card.selected svg {
  stroke: #fff;
}

.hidden-radio {
  display: none;
}

/* Terminal Window & Lottie Anim */
.terminal-window {
  background: #1e1e1e;
  border: 2px solid #000;
  padding: 0;
  margin-top: 2rem;
  color: #00ff00;
  font-family: monospace;
  position: relative;
  overflow: hidden;
  max-width: 800px;
  border-radius: 4px;
}

.terminal-header {
  background: #333;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #000;
}

.mac-buttons {
  display: flex;
  gap: 8px;
}

.mac-buttons span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
  border: 2px solid #000;
}

.mac-buttons span:nth-child(1) { background: #ff5f56; }
.mac-buttons span:nth-child(2) { background: #ffbd2e; }
.mac-buttons span:nth-child(3) { background: #27c93f; }

.terminal-title {
  color: #fff;
  font-size: 0.85rem;
  margin-left: 1rem;
  font-family: var(--font);
  font-weight: bold;
}

.terminal-body {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.1rem;
}

.terminal-text {
  flex: 1;
}

.lottie-spinner {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

/* Simple grid overrides for pick list */
.pick-list.simple-grid {
  display: grid;
  flex-direction: row;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  max-height: none;
  border-right: none;
  padding-right: 0;
}

.pick-list.simple-grid .pick-item {
  flex-direction: column;
  padding: 0;
  border: 2px solid #000;
  height: 85px;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}

.pick-list.simple-grid .pick-item input[type="checkbox"] {
  display: none;
}

.pick-list.simple-grid .pick-item img {
  width: 100%;
  height: 70px;
  border: none;
  border-bottom: 2px solid #000;
  margin: 0;
}

.pick-list.simple-grid .pick-meta {
  padding: 0.25rem 0.5rem;
  font-size: 0.70rem;
  width: 100%;
  text-align: center;
  background: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Horizontal Row Layouts for Form */
.studio-row-full {
  width: 100%;
}

.studio-row-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .studio-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.studio-row-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .studio-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.studio-col-3 {
  display: flex;
  flex-direction: column;
}

.studio-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Full-width grids inside centered steps (screenshot picks, selected previews) */
.studio-col-center > .pick-list.simple-grid {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.studio-col-center > .selected-shots-wrap {
  width: 100%;
  align-self: stretch;
}

/* Ad studio: session persistence disclaimer (full-width strip) */
.ad-studio-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  --studio-line: rgba(0, 0, 0, 0.14);
  --studio-line-strong: rgba(0, 0, 0, 0.22);
}

.ad-studio-page .app-layout {
  flex: 1;
  min-height: 0;
}

/* Softer borders across studio panels, forms, and outputs */
.ad-studio-page .panel,
.ad-studio-page .panel-inner,
.ad-studio-page .status:not(.error),
.ad-studio-page .pick-item,
.ad-studio-page .pick-item img,
.ad-studio-page .selected-shots-wrap,
.ad-studio-page .selected-shot-tile,
.ad-studio-page .selected-shot-label,
.ad-studio-page .gen-status,
.ad-studio-page .gen-progress-track,
.ad-studio-page .mockup-inline-thumb,
.ad-studio-page .out-single-thumb,
.ad-studio-page .suite-file-row:not(.is-selected),
.ad-studio-page .suite-file-thumb-wrap,
.ad-studio-page .suite-preview-panel,
.ad-studio-page .shot-lightbox-inner,
.ad-studio-page .shot-lightbox-close,
.ad-studio-page .svg-card:not(.selected),
.ad-studio-page .terminal-window,
.ad-studio-page .terminal-header,
.ad-studio-page .mac-buttons span,
.ad-studio-page .pick-list.simple-grid .pick-item,
.ad-studio-page .pick-list.simple-grid .pick-item img,
.ad-studio-page .aspect,
.ad-studio-page .brief,
.ad-studio-page .file-input,
.ad-studio-page .inspiration-dropzone__label,
.ad-studio-page button:not(.shot-lightbox-backdrop):not(.brief-ai-btn) {
  border-color: var(--studio-line);
}

.ad-studio-page .inspiration-dropzone--drag .inspiration-dropzone__label {
  border-color: var(--studio-line-strong);
}

.ad-studio-page .brief-ai-btn {
  border-color: var(--studio-line);
  color: var(--studio-line-strong, #000);
}

.ad-studio-page .studio-traced-site-card {
  border-color: var(--studio-line);
  background: rgba(255, 255, 255, 0.92);
}

.ad-studio-page .studio-step-num {
  border-color: var(--studio-line-strong);
}

.ad-studio-page .suite-file-row.is-selected {
  border-color: rgba(0, 0, 0, 0.5);
}

.ad-studio-page .svg-card.selected {
  border-color: #000;
}

.ad-studio-page .aspect:focus,
.ad-studio-page .brief:focus,
.ad-studio-page .file-input:focus {
  outline-color: var(--studio-line-strong);
}

.ad-studio-page .btn-dull {
  border-color: var(--studio-line) !important;
}

.studio-session-disclaimer {
  flex-shrink: 0;
  margin: 0;
  padding: 0.22rem 0.65rem;
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  background: #fff8dc;
  color: #5c4a00;
  border-bottom: 1px solid #e8d060;
  text-align: center;
}

@media (max-width: 520px) {
  .studio-session-disclaimer {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
  }
}

/* App Sidebar Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-sidebar {
  width: 260px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: #f0f0f2;
  min-height: 0;
}

@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    max-height: min(42vh, 320px);
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  .app-main {
    height: auto;
    min-height: 0;
    flex: 1;
  }

  .sidebar-assets-body {
    padding-bottom: 1rem;
  }
}

.sidebar-assets-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.studio-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.studio-asset-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  font: inherit;
  text-align: left;
}

.studio-asset-thumb:hover {
  background: #f0f0f0;
}

.studio-asset-thumb:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

.studio-asset-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.studio-asset-thumb-label {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.4rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 800;
}

.btn-new-crawl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  color: #000;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s;
  background: #fff;
}

button.btn-new-crawl {
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-new-crawl:hover {
  background: #000;
  color: #fff;
}

.sidebar-assets-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-assets-hint {
  font-size: 0.72rem;
  line-height: 1.35;
  margin: 0;
  padding-top: 0.25rem;
  color: #444;
}

.sidebar-assets-empty {
  margin: 0;
  font-size: 0.78rem;
  color: #555;
}

.sidebar-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.sidebar-assets-grid .sidebar-asset-thumb {
  border-radius: 4px;
}

.sidebar-assets-grid .sidebar-asset-thumb img {
  border-radius: 2px;
}

.app-main {
  flex: 1;
  overflow-y: auto;
  height: 100vh;
}

/* ─── Landing top announcement strip ─── */
.landing-announcement {
  width: 100%;
  padding: 0.28rem 1rem;
  background: rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.landing-announcement,
.landing-announcement * {
  text-transform: none;
}

.landing-announcement__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  line-height: 1.25;
}

.landing-announcement__pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f5d547;
  color: #1a1400;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.landing-announcement__msg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  color: #222;
}

.landing-announcement__msg-text {
  text-align: left;
}

.landing-announcement__logo {
  height: 0.95rem;
  width: auto;
}

.landing-wrap {
  position: relative;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  padding: 1rem max(1rem, env(safe-area-inset-right)) 2rem max(1rem, env(safe-area-inset-left));
  background-color: #ffffff;
  background-image: url("/assets/bg1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

/* /login + /register: no top nav — center card (overrides .landing-wrap justify-content) */
.landing-wrap.auth-google-page-wrap {
  justify-content: center;
}

.landing-wrap.auth-google-page-wrap .landing-form {
  margin-top: 0;
}

.landing-form {
  width: 100%;
  max-width: 650px;
  margin-top: 2rem;
}

.landing-wrap .logo {
  font-size: 4.5rem;
}

.landing-wrap .subtitle {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: #444;
}

.landing-wrap .crawl-opts {
  border-top: none;
  margin-top: 1.5rem;
}

/* ─── Hero Stage ─── */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Hero nav: docked to bottom of landing section at rest; fixed to top while scrolling ─── */
.hero-navbar {
  position: fixed;
  left: 50%;
  width: auto;
  min-width: fit-content;
  max-width: min(100vw - 2rem, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.65rem, 2.5vw, 2.5rem);
  row-gap: 0.5rem;
  padding: 0.75rem 2rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 999;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: translateX(-50%);
  pointer-events: auto;
  bottom: auto;
  /* top set in px via JS so docked ↔ stuck can interpolate (auto + bottom cannot transition) */
  transition: top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Phones: full-width bar so links are not cramped in a narrow pill */
@media (max-width: 640px) {
  .hero-navbar {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    min-width: 0;
    transform: none;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.9rem;
    padding-left: max(0.9rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.9rem, env(safe-area-inset-right, 0px));
    gap: 0.5rem 0.75rem;
    border-radius: 14px;
  }

  .hero-navbar .nav-link {
    font-size: 0.92rem;
    padding: 0.35rem 0.15rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .hero-navbar .nav-auth {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .hero-navbar .nav-auth__guest {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-navbar {
    transition-duration: 0.01ms;
  }
}

.hero-navbar .nav-link {
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.hero-navbar .nav-link:hover {
  opacity: 0.5;
}

/* ─── Title area ─── */
.hero-center {
  position: relative;
  width: 100%;
  padding: 0 2rem;
  margin-top: clamp(3rem, 10vh, 6rem);
}

.hero-title-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
}

/* Links entering from the left, fading out before the title */
.hero-title-wrap .hero-link-layer {
  position: absolute;
  right: calc(100% - 1rem);
  top: 50%;
  transform: translateY(-50%);
  width: 45vw;
  height: 2.75rem;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 70%, transparent 100%);
}

/* Asset images emerging to the right */
.hero-title-wrap .hero-asset-layer {
  position: absolute;
  left: calc(100% - 1rem);
  top: 50%;
  transform: translateY(-50%);
  width: 45vw;
  height: 3.5rem;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  mask-image: linear-gradient(to left, transparent 0%, #000 5%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 5%, #000 70%, transparent 100%);
}

.hero-asset-marquee {
  display: flex;
  width: max-content;
  will-change: transform;
  /* Fallback until app.js sets --hero-asset-loop to the first column’s width in px */
  transform: translate3d(-50%, 0, 0);
}

.hero-asset-marquee.hero-asset-marquee--loop-ready {
  transform: none;
  animation: heroAssetFlow 5s linear infinite;
}

.hero-asset-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.hero-asset-thumb {
  height: 3rem;
  width: auto;
  border-radius: 4px;
  object-fit: cover;
  opacity: 1;
  flex-shrink: 0;
}

@keyframes heroAssetFlow {
  0% {
    transform: translate3d(calc(-1 * var(--hero-asset-loop, 0px)), 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.logo-lockup {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-mark {
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.hero-title-wrap .logo-lockup .logo-mark {
  height: 2.65rem;
}

.studio-logo-lockup {
  z-index: auto;
}

.studio-header-title-wrap .studio-logo-lockup .logo-mark {
  height: 1.85rem;
}

.hero-title-wrap .logo {
  position: relative;
  font-size: clamp(2.35rem, 12vw, 4.5rem);
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.7));
}

.landing-wrap .hero-title-wrap .logo {
  filter: none;
}

.hero-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ─── Marquee (links) ─── */
.hero-link-marquee {
  display: flex;
  width: max-content;
  animation: heroUrlFlow 8s linear infinite reverse;
}

.hero-link-content {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem 0.85rem;
  padding-right: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.03em;
}

.hero-url-item {
  white-space: nowrap;
  opacity: 0.75;
}

.hero-url-sep {
  color: #999;
  font-weight: 500;
  user-select: none;
}

@keyframes heroUrlFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Search bar (centered, standalone) ─── */
.hero-search-area {
  width: 100%;
  max-width: 580px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.hero-search-form {
  margin-top: 0;
  width: 100%;
  max-width: none;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hero-search-form .search-row {
  max-width: none;
}

.hero-search-form .search-bar {
  opacity: 1;
  color: #000;
  background: #ffffff;
}

.hero-search-form .search-bar::placeholder {
  opacity: 1;
  color: #000;
}

/* Inner input well: solid white (default ::after is 92% opaque so the border spin reads as gray) */
.hero-search-form .search-wrapper {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-search-form .search-wrapper::after {
  background: #ffffff;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hero-link-marquee,
  .hero-asset-marquee,
  .hero-asset-marquee.hero-asset-marquee--loop-ready {
    animation: none;
    transform: none;
  }

  .hero-link-content[aria-hidden="true"],
  .hero-asset-content[aria-hidden="true"] {
    display: none;
  }
}

/* ─── Mobile ─── */
@media (max-width: 1020px) {
  .hero-title-wrap .hero-link-layer,
  .hero-title-wrap .hero-asset-layer {
    width: 35vw;
  }

  .hero-center {
    margin-top: clamp(1.5rem, 4vh, 3rem);
  }

  .hero-search-area {
    max-width: 500px;
    padding: 0 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-title-wrap .hero-link-layer,
  .hero-title-wrap .hero-asset-layer {
    display: none;
  }

  .landing-wrap .logo-lockup .logo-mark {
    height: clamp(1.5rem, 7vw, 2.65rem);
  }

  .hero-search-area {
    padding: 0 0.75rem;
  }

  .hero-search-form .search-bar {
    font-size: 16px; /* avoids iOS zoom on focus */
  }

  .studio-search-basic .search-bar {
    font-size: 16px;
  }

  .landing-wrap .subtitle.hero-subtitle {
    font-size: 1.05rem;
    padding: 0 0.25rem;
    line-height: 1.45;
  }
}

/* Global Navigation */
.global-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  box-sizing: border-box;
  animation: slideDownNav 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: translateY(-100%);
  z-index: 100;
}

@keyframes slideDownNav {
  to { transform: translateY(0); }
}

.global-nav .nav-link {
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s;
}

.global-nav .nav-link:hover {
  opacity: 0.5;
}

/* Reserves the old right-slot width so layout stays balanced when intentionally blank */
.global-nav .nav-col--empty {
  min-width: 7.5rem;
  pointer-events: none;
}

/* Scrollable Landing Extensions */
.landing-main {
  display: block;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  background: #fff;
  padding: 1.25rem 0;
  display: flex;
  margin-top: -2px; /* Pull it up to overlap any unwanted borders */
  z-index: 10;
  position: relative;
}

.marquee-track {
  display: flex;
  animation: scrollMarquee 25s linear infinite;
  width: max-content;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem; /* Match gap for seamless loop */
}

.marquee-content span {
  font-size: clamp(0.85rem, 3.5vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  letter-spacing: 0.05em;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-examples {
  position: relative;
  pointer-events: none;
  z-index: 5;
  width: 100%;
  max-width: 340px;
  min-height: min(60vh, 540px);
  max-height: 72vh;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scroll-margin-top: 5.5rem;
}

.examples-mosaic-title {
  display: none;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-examples.is-revealed .examples-mosaic-title {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.mosaic-gallery {
  width: 100%;
  height: 100%;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  padding: 1rem 0.65rem 1rem 0.85rem;
  box-sizing: border-box;
}

/* Fixed height slot + object-fit → even vertical gaps in the falling “train” */
/* Right-aligned with inset so wide assets grow left and never clip off the screen */
.floating-img {
  position: absolute;
  top: -300px;
  left: auto;
  right: clamp(1rem, 3vw, 2.25rem);
  height: 240px;
  width: auto;
  max-width: min(300px, calc(100vw - 4rem));
  object-fit: contain;
  opacity: 0.92;
  animation: floatDown linear infinite;
  will-change: transform;
  pointer-events: auto;
}

.hero-examples.is-revealed .floating-img {
  opacity: 0.92;
}

.floating-img:hover {
  opacity: 1;
  z-index: 10;
}

@keyframes floatDown {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(480vh);
  }
}

@media (max-width: 900px) {
  .floating-img {
    height: 190px;
    max-width: 240px;
  }
}

@media (max-width: 600px) {
  .floating-img {
    height: 130px;
    max-width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .examples-mosaic-title {
    opacity: 1;
    transform: translate(-50%, 0);
    transition: none;
  }

  .floating-img {
    animation: none;
    transform: none;
  }
}

.how-it-works-section {
  padding: 6rem 4rem;
  background-image: url("/assets/3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 640px) {
  .how-it-works-section {
    padding: 3.5rem 1.25rem;
  }

  .how-card {
    padding: 1.75rem 1.25rem 2rem;
  }

  .how-num {
    left: 1rem;
  }
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.how-card {
  background: #fff;
  border: 2px solid #000;
  padding: 2.5rem;
  text-align: left;
  position: relative;
  border-radius: 4px;
}

.how-num {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  color: #000;
  position: absolute;
  top: -2rem;
  left: 2rem;
  background: #fff;
  padding: 0 1rem;
  border: 2px solid #000;
  border-radius: 4px;
}

.how-title {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.how-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.cta-section {
  margin: 6rem auto;
  text-align: center;
  max-width: 800px;
  padding: 4rem 2rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  background: linear-gradient(to bottom, #ffffff, #f4f4f4);
  border-radius: 8px; /* Slightly more rounded for this large section */
}

@media (max-width: 640px) {
  .cta-section {
    margin: 3rem 0.75rem;
    padding: 2.5rem 1rem;
  }
}

.app-footer {
  position: relative;
  background: #f4f4f4;
  padding: 8rem 4rem 4rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  padding-bottom: max(4rem, env(safe-area-inset-bottom));
  overflow: hidden;
  border-top: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 640px) {
  .app-footer {
    padding-top: 4rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

.app-footer * {
  text-transform: none;
}

.footer-content {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-logo-mark {
  height: 1.45rem;
  width: auto;
}

.footer-heading {
  font-size: 5.5rem;
  font-weight: 500;
  color: #000;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-subheading {
  font-size: 5.5rem;
  font-weight: 500;
  color: #999;
  margin: 0 0 8rem 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 6rem;
  margin-top: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #000;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a, .footer-col span {
  color: #666;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #000;
}

.footer-bg-text {
  position: absolute;
  bottom: -0.12em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 27vw;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  font-family: inherit;
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 4rem;
  }
  .footer-right {
    gap: 3rem;
  }
  .footer-heading, .footer-subheading {
    font-size: 3.5rem;
    margin-bottom: 2rem;
  }
  .footer-bg-text {
    font-size: 35vw;
  }
}


/* Full Screen Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 99999;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#loading-text {
  color: #fff;
  font-family: inherit;
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
  text-align: left;
  text-transform: lowercase;
  transition: opacity 0.3s ease;
  min-height: 3rem;
  letter-spacing: -0.02em;
}

/* Scroll Reveal Section */
.scroll-reveal-section {
  background: #000 url("/assets/bg3.png") center / cover no-repeat;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-bottom: 2px solid #000;
  z-index: 2;
  overflow: hidden;
}

/* ── Dark overlay on bg image ── */
.scroll-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.65);
}

.scroll-reveal-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 max(1.25rem, env(safe-area-inset-left)) 0 max(1.25rem, env(safe-area-inset-right));
  max-width: 1200px;
  width: 100%;
  z-index: 1;
}

@media (min-width: 768px) {
  .scroll-reveal-wrap {
    padding: 0 4rem;
  }
}

.scroll-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: transparent;
  margin: 0;
}

.scroll-text span {
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.1s ease;
}

.scroll-text span.revealed {
  color: #fff;
}

/* Step 1 Animation: Mock Search & Interaction */
.how-step-anim {
  margin-top: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border: 2px solid #000;
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mock-search-wrapper {
  flex: 1;
  max-width: 300px;
  background: #fff;
  border: 2px solid #000;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
  transition: border-width 0.2s ease, box-shadow 0.2s ease;
}



.mock-input-text {
  flex: 1;
  font-size: 0.9rem;
  font-family: var(--font);
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.mock-input-text::after {
  content: "apple.com";
  display: inline-block;
  width: 0;
  overflow: hidden;
  animation: typingText 8s infinite;
}

@keyframes typingText {
  0%, 30% { width: 0; }
  35%, 60% { width: 100%; }
  100% { width: 100%; }
}

.mock-cursor-line {
  display: inline-block;
  width: 2px;
  height: 1.2rem;
  background: #000;
  margin-left: 2px;
  vertical-align: middle;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.mock-go-btn {
  width: 28px;
  height: 28px;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: #fff;
  margin-left: 0.5rem;
  animation: mockBtnClick 8s infinite;
}

@keyframes mockBtnClick {
  0%, 75% { transform: scale(1) rotate(0); background: #fff; color: #000; }
  78% { transform: scale(0.9) rotate(-10deg); background: #000; color: #fff; }
  82%, 100% { transform: scale(1) rotate(-45deg); background: #000; color: #fff; }
}

.mouse-pointer {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 10;
  pointer-events: none;
  animation: mouseMove 8s infinite;
}

@keyframes mouseMove {
  0% { top: 80%; left: 80%; opacity: 0; }
  10% { opacity: 1; }
  25% { top: 50%; left: 30%; } /* Move to input */
  35% { top: 50%; left: 30%; } /* Click wait */
  65% { top: 50%; left: 85%; } /* Move to button */
  75% { top: 50%; left: 85%; } /* Click wait */
  90% { top: 80%; left: 80%; opacity: 1; }
  100% { opacity: 0; }
}

/* Make Step 1 card have extra space for animation */
#how-it-works .how-card:first-child {
  padding-bottom: 2rem;
}

/* Step 2 Animation: AI Tracing & Palette */
.how-step-anim-2 {
  margin-top: 2rem;
  padding: 1rem;
  background: #fdfdfd;
  border: 2px solid #000;
  position: relative;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.mock-google-page {
  width: 100%;
  height: 80px;
  background: #fff;
  border: 2px solid #eee;
  position: relative;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mock-g-logo {
  width: 40px;
  height: 12px;
  background: #eee;
  border-radius: 2px;
}

.mock-g-search {
  width: 80%;
  height: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.mock-g-results {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mock-g-result {
  width: 90%;
  height: 6px;
  background: #f5f5f5;
}

.scan-box {
  position: absolute;
  border: 2px solid #4285F4;
  background: rgba(66, 133, 244, 0.1);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: scanSequence 8s infinite;
}

@keyframes scanSequence {
  0%, 10% { opacity: 0; top: 5px; left: 5px; width: 45px; height: 16px; border-color: #4285F4; background: rgba(66, 133, 244, 0.1); }
  12%, 22% { opacity: 1; top: 5px; left: 5px; width: 45px; height: 16px; border-color: #4285F4; background: rgba(66, 133, 244, 0.1); }
  23% { opacity: 0; }
  25%, 35% { opacity: 1; top: 25px; left: 5px; width: 85%; height: 18px; border-color: #EA4335; background: rgba(234, 67, 53, 0.1); }
  36% { opacity: 0; }
  38%, 48% { opacity: 1; top: 50px; left: 5px; width: 60%; height: 8px; border-color: #FBBC05; background: rgba(251, 188, 5, 0.1); }
  49% { opacity: 0; }
  51%, 61% { opacity: 1; top: 65px; left: 5px; width: 40%; height: 8px; border-color: #34A853; background: rgba(52, 168, 83, 0.1); }
  62%, 100% { opacity: 0; }
}

.how-palette {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.palette-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #000;
  opacity: 0;
  transform: scale(0);
}

.palette-blue { background: #4285F4; animation: revealBlue 8s infinite; }
.palette-red { background: #EA4335; animation: revealRed 8s infinite; }
.palette-yellow { background: #FBBC05; animation: revealYellow 8s infinite; }
.palette-green { background: #34A853; animation: revealGreen 8s infinite; }

@keyframes revealBlue {
  0%, 15% { opacity: 0; transform: scale(0); }
  18%, 85% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(0); }
}
@keyframes revealRed {
  0%, 30% { opacity: 0; transform: scale(0); }
  33%, 85% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(0); }
}
@keyframes revealYellow {
  0%, 45% { opacity: 0; transform: scale(0); }
  48%, 85% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(0); }
}
@keyframes revealGreen {
  0%, 60% { opacity: 0; transform: scale(0); }
  63%, 85% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(0); }
}

/* Make Step 2 card have extra space for animation */
#how-it-works .how-card:nth-child(2) {
  padding-bottom: 2rem;
}

/* Step 3 Animation: Loading to Mockups */
.how-step-anim-3 {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff;
  border: 2px solid #000;
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.step3-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: step3Spin 1s linear infinite, step3FadeOut 8s infinite;
}

@keyframes step3Spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes step3FadeOut {
  0%, 35% { opacity: 1; transform: scale(1) rotate(0deg); }
  40%, 100% { opacity: 0; transform: scale(0.5) rotate(180deg); }
}

.mockup-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 15px;
  opacity: 0;
  animation: mockupReveal 8s infinite;
}

@keyframes mockupReveal {
  0%, 40% { opacity: 0; transform: scale(0.8); }
  45%, 90% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(1.1); }
}

.mockup-item {
  background: #fdfdfd;
  border: 1.5px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mockup-item svg {
  width: 70%;
  height: 70%;
}

.mockup-item:nth-child(odd) {
  animation: float1 4s ease-in-out infinite;
}
.mockup-item:nth-child(even) {
  animation: float2 4s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Make Step 3 card have extra space */
#how-it-works .how-card:nth-child(3) {
  padding-bottom: 2rem;
}

/* ─── 404 page ─── */
.page-404__main {
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-404__inner {
  width: 100%;
  max-width: 520px;
}

.page-404__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2rem;
}

.page-404__brand .logo-mark {
  height: 1.85rem;
  width: auto;
}

.page-404__brand .logo {
  font-size: 1.35rem;
  font-weight: 700;
}

.page-404__code {
  font-size: clamp(4rem, 14vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 0.75rem;
  color: #000;
}

.page-404__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.page-404__copy {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.page-404__btn {
  text-decoration: none;
  display: inline-flex;
}
