/* Combup USA (combup.com/usa): additions on top of landing.css (landing, pricing, /bot) and styles.css (app).
   Only the US pages load this file; the Turkish site is unaffected. Colors come from the shared tokens. */

/* ---- landing -------------------------------------------------------------------------------------------------- */

.usa-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-grid.is-empty .demo-media,
.products.is-empty .product-media {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface) 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: usa-shimmer 1.6s linear infinite;
}

@keyframes usa-shimmer {
  to { background-position: -300% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-grid.is-empty .demo-media,
  .products.is-empty .product-media { animation: none; }
}

.fine.usa-fine {
  max-width: 62ch;
}

/* ---- pricing -------------------------------------------------------------------------------------------------- */

.usa-page {
  padding: 56px 0 72px;
}

.usa-page h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.usa-page .lede {
  max-width: 60ch;
}

.usa-page .plans {
  margin-top: 32px;
}

/* Premium's list is long: stack the plans on phones and small tablets (landing.css stacks them only below 560px) */
@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}

.plan-status {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.plan-status[data-tone="error"] { color: var(--accent); }

.usa-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 44px 0 0;
}

.usa-sub + .usa-notes { margin-top: 14px; }

/* photo search: the user's photo in the chat feed (web/usa/app.js photoSearch) */
.msg-user.msg-photo {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.msg-user.msg-photo img {
  display: block;
  width: min(180px, 46vw);
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
}

.usa-notes {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 70ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.usa-notes li::before {
  content: "✦";
  color: var(--accent);
  margin-right: 8px;
}

/* ---- /bot ----------------------------------------------------------------------------------------------------- */

.bot-page {
  max-width: 760px;
}

.bot-page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 36px 0 8px;
}

.bot-page p,
.bot-page li {
  color: var(--ink-2);
  line-height: 1.65;
}

.bot-page code,
.bot-page pre {
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bot-page pre {
  margin: 8px 0 16px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

/* ---- 404 ------------------------------------------------------------------------------------------------------ */

.usa-404 {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 16px;
  padding: 48px 16px;
}

.usa-404 h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 44px);
  margin: 0;
}

.usa-404 p { margin: 0; color: var(--ink-2); }

.usa-404 .final-actions { justify-content: center; }

/* ---- app ------------------------------------------------------------------------------------------------------ */

/* Guest search: results without the assistant, plus a quiet invitation to sign in */
.guest-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.guest-note strong { color: var(--ink); }

.guest-note .primary { margin-left: auto; }

@media (max-width: 480px) {
  .guest-note .primary { margin-left: 0; width: 100%; }
}

/* Saved items panel */
.saved-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.saved-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.saved-item img,
.saved-item .saved-ph {
  width: 64px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}

.saved-item .saved-text {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.saved-item .saved-title {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.saved-item .saved-meta { color: var(--muted); font-size: 13px; }

.saved-item .saved-price { font-weight: 600; color: var(--ink); }

.saved-item .saved-price.drop { color: var(--ok); }

.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 15px var(--font-text);
  cursor: pointer;
}

.save-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.save-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.save-btn[aria-pressed="true"] svg { fill: currentColor; }

.save-btn:focus-visible,
.saved-item .saved-title:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.store-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
