/* ============================================================
   Bevri POS — Page 1 (Get Started) layout & components
   ============================================================ */

.app {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* faint circuit motif */
.circuit-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------------- top bar ---------------- */
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  flex: 0 0 auto;
}
.logo-btn {
  background: none;
  border: 0;
  padding: 4px;
  border-radius: 10px;
  display: inline-flex;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.ghost-btn {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s, border-color .15s;
}
.ghost-btn:hover { background: var(--surface); border-color: var(--sage); }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--mint);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  font-family: var(--mono);
}

/* ---------------- welcome ---------------- */
.welcome {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px 40px;
  overflow-y: auto;
}
.welcome-inner {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-mark {
  position: relative;
  width: 92px; height: 92px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffffff, var(--mint-tint));
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}
.hero-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--mint);
  opacity: .7;
  animation: ring 3.4s ease-in-out infinite;
}
@keyframes ring {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.06); opacity: .15; }
}
@media (prefers-reduced-motion: reduce) { .hero-ring { animation: none; } }

.eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--sage);
  margin: 0 0 14px;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1.02;
  color: var(--forest);
}
.hero-sub {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
  margin: 12px 0 24px;
  font-weight: 400;
}

.resume-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: linear-gradient(135deg, var(--surface), var(--mint-tint));
  border: 1px solid var(--mint);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.resume-copy { flex: 1; min-width: 0; }
.resume-kicker {
  display: block;
  font-size: 10.5px;
  letter-spacing: .13em;
  color: var(--sage);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.resume-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--forest);
}
.resume-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.resume-prog {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 4px;
}
.resume-prog-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.resume-prog-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  transition: width .4s ease;
}
.resume-prog-label {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sage);
  font-family: var(--mono);
  letter-spacing: .04em;
}
.resume-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 0 0 auto;
}
.resume-primary, .resume-secondary {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.resume-primary {
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--mint);
}
.resume-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.72);
  color: var(--forest);
}
.resume-primary:hover, .resume-secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* choice cards */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-bottom: 26px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.choice:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}
.choice-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--mint-tint);
  color: var(--sage);
}
.choice:hover .choice-icon { background: var(--mint); color: var(--forest); }
.choice-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.choice-title { font-size: 18px; font-weight: 600; color: var(--forest); letter-spacing: -0.01em; }
.choice-sub { font-size: 13.5px; color: var(--muted); }
.choice-arrow {
  color: var(--faint);
  font-size: 18px;
  transition: transform .16s ease, color .16s ease;
}
.choice:hover .choice-arrow { color: var(--sage); transform: translateX(3px); }

/* example chips */
.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 18px;
}
.example-chip {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
.example-chip:hover { background: var(--surface); color: var(--text); border-color: var(--sage); }

/* ---------------- composer ---------------- */
.composer-wrap { width: 100%; }
.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 8px 8px 8px 12px;
  box-shadow: var(--shadow-md);
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within { border-color: var(--sage); box-shadow: var(--shadow-lg); }
.comp-attach {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0; background: transparent;
  color: var(--faint);
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.comp-attach:hover { background: var(--mint-tint); color: var(--sage); }
.comp-input {
  flex: 1;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  padding: 8px 2px;
  max-height: 180px;
}
.comp-input::placeholder { color: var(--faint); }
.comp-send {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--sage-soft);
  color: var(--faint);
  display: grid; place-items: center;
  transition: background .15s, color .15s, transform .12s;
}
.comp-send.on { background: var(--forest); color: var(--mint); }
.comp-send.on:hover { transform: translateY(-1px); }
.comp-send:disabled { cursor: default; }

.disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--faint);
  margin: 12px 0 0;
  letter-spacing: 0.01em;
}

/* ---------------- chat ---------------- */
.chat {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.thread {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 24px 24px;
}
.thread-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 14px;
}
.row { display: flex; gap: 12px; animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.row-user { justify-content: flex-end; }
.row-ai { justify-content: flex-start; }
.ai-avatar {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mint-tint);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.ai-body { display: flex; flex-direction: column; gap: 10px; max-width: 78%; }
.bubble {
  font-size: 15.5px;
  line-height: 1.55;
  border-radius: 18px;
  padding: 13px 17px;
}
.bubble-ai {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-left-radius: 6px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.bubble-user {
  background: var(--forest);
  color: #eef6f0;
  border-top-right-radius: 6px;
  max-width: 78%;
}

.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-chip {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--sage);
  color: var(--sage);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.quick-chip:hover { background: var(--sage); color: #fff; }

/* typing indicator */
.bubble-ai.typing { display: inline-flex; gap: 5px; align-items: center; padding: 15px 17px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
  opacity: .4;
  animation: blink 1.2s infinite ease-in-out;
}
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .25; transform: translateY(0);} 50% { opacity: 1; transform: translateY(-2px);} }

/* docked composer in chat */
.composer-dock {
  flex: 0 0 auto;
  padding: 10px 24px 18px;
  background: linear-gradient(to top, var(--bg) 60%, rgba(246,247,243,0));
}
.composer-dock-inner { max-width: 720px; margin: 0 auto; }

/* second outer ring — staggered for depth */
.hero-ring-2 {
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px solid var(--sage-soft);
  opacity: .35;
  animation: ring 3.4s ease-in-out 1.7s infinite;
}

/* ---------------- trust strip (welcome) ---------------- */
.trust-strip {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 22px;
  margin: 14px 0 22px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex-wrap: nowrap;
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  padding: 0 16px;
}
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { padding-right: 0; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { color: var(--sage); flex: 0 0 auto; }

/* featured choice card (Purchase) */
.choice.featured {
  border-color: var(--sage);
  background: linear-gradient(150deg, var(--surface) 55%, var(--mint-tint) 100%);
}

/* sign-in strip (below choice cards) */
.sign-in-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin: -10px 0 16px;
}
.sign-in-strip-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.sign-in-strip-btn:hover { color: var(--forest); }

/* hero gradient text accent */
.hero-accent {
  background: linear-gradient(125deg, var(--forest) 0%, var(--sage) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* security footer badges row */
.security-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  color: var(--faint);
  font-size: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.security-row svg { vertical-align: middle; margin-right: 3px; }

/* ---------------- responsive ---------------- */
@media (max-width: 640px) {
  .choices { grid-template-columns: 1fr; }
  .resume-card { align-items: stretch; flex-direction: column; }
  .resume-actions { width: 100%; }
  .resume-primary, .resume-secondary { width: 100%; }
  .ghost-btn { display: none; }
  .ghost-btn.sign-in-btn { display: inline-flex; padding: 6px 12px; font-size: 13px; }
  .ai-body, .bubble-user { max-width: 86%; }
  .trust-strip { flex-wrap: wrap; border-radius: 16px; padding: 10px 16px; }
  .trust-item { padding: 4px 12px; font-size: 12px; }
  .trust-item:first-child { padding-left: 12px; }
  .trust-item:last-child { padding-right: 12px; }
  .trust-item + .trust-item { border-left: none; border-top: 1px solid var(--line); width: 100%; }
  .security-row { gap: 10px; font-size: 11px; }
}
