/* Page-specific layout. Shared components live in components.css; this file is
   the per-page composition (grids, spacing) built from them. */

/* ---------- / (landing) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
  padding: 50px 44px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.1;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero-copy p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 26px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero .disclaimer {
  margin-bottom: 20px;
}


.steps {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 44px 64px;
}

.steps h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}

/* One shared card rather than three columns with no common boundary — the
   "more generous, more designed" note this took after seeing it deployed.
   The corner dots echo the ticket-cut CTA's perforation mark elsewhere on
   the page, the same travel-document idea rather than a new one. */
.steps-card {
  position: relative;
  background: var(--mist-white);
  border: 1px solid rgba(39, 38, 42, 0.12);
  border-radius: 18px;
  padding: 40px 44px;
}

.steps-card::before,
.steps-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-image: radial-gradient(circle, rgba(39, 38, 42, 0.22) 1.5px, transparent 1.5px);
  background-size: 14px 1px;
  background-repeat: repeat-x;
}

.steps-card::before {
  top: -1px;
}

.steps-card::after {
  bottom: -1px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step:not(:first-child) {
  border-left: 1px solid rgba(39, 38, 42, 0.12);
  padding-left: 40px;
}

.step .n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--concierge-brown);
  color: var(--mist-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0 0 6px;
  font-weight: 700;
}

.step p {
  font-size: 13.3px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ---------- landing page demo card: looping mock conversation ----------
   Colors pulled directly from extension/src/content-script/styles.ts, the
   real widget's own stylesheet — not reinterpreted for the marketing site.
   That file uses solid Concierge Brown headers and pure white message
   bubbles on a Mist White card body; the landing page should look like it
   actually is the product, not a paler impression of it. */
.demo-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.demo-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px -8px rgba(39, 38, 42, 0.28);
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--concierge-brown);
}

.demo-head .prop {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mist-white);
}

.demo-head .chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.18);
  color: var(--mist-white);
  padding: 4px 9px;
  border-radius: 999px;
}

.demo-body {
  display: flex;
  flex-direction: column;
  background: var(--mist-white);
  /* Bottom-anchored, fixed height: matches the real product's own chat
     card (CLAUDE.md decision 4, "fixed height... message list scrolls
     internally"), and reads as a conversation growing from the bottom
     rather than reserving a blank gap wherever unrevealed messages sit. */
  justify-content: flex-end;
  height: 272px;
  gap: 10px;
  padding: 16px;
}

.demo-slot {
  position: relative;
  min-height: 64px;
}

.demo-loading,
.demo-msg {
  position: absolute;
  inset: 0 auto auto 0;
  right: 0;
}

.demo-loading {
  margin: 0;
  font-size: 12.8px;
  /* rgb(117,106,99): extension/src/content-script/styles.ts's own
     .snapshot-loading color, not a new one for this page. */
  color: rgb(117, 106, 99);
  animation: demoLoadingFade 12s ease-in-out infinite;
}

.demo-msg {
  max-width: 92%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 12.8px;
  line-height: 1.5;
}

.demo-snapshot,
.demo-reply {
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.demo-snapshot {
  animation: demoSnapshotFade 12s ease-in-out infinite;
}

.demo-reply {
  animation: demoReplyFade 12s ease-in-out infinite;
}

.demo-user {
  position: static;
  align-self: flex-end;
  max-width: 80%;
  background: var(--concierge-brown);
  color: var(--mist-white);
  border-bottom-right-radius: 4px;
  animation: demoUserFade 12s ease-in-out infinite;
}

.demo-typing {
  position: absolute;
  inset: 0 auto auto 0;
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 12px 13px;
  background: #fff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  animation: demoTypingFade 12s ease-in-out infinite;
}

.demo-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: demoTypingBounce 1s ease-in-out infinite;
}

.demo-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.demo-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes demoLoadingFade {
  0%, 10% { opacity: 1; }
  15%, 100% { opacity: 0; }
}

@keyframes demoSnapshotFade {
  0%, 14% { opacity: 0; transform: translateY(4px); }
  20% { opacity: 1; transform: translateY(0); }
  92% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(-3px); }
}

@keyframes demoUserFade {
  0%, 39% { opacity: 0; transform: translateY(4px); }
  45% { opacity: 1; transform: translateY(0); }
  92% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(-3px); }
}

@keyframes demoTypingFade {
  0%, 47% { opacity: 0; }
  50%, 58% { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes demoReplyFade {
  0%, 61% { opacity: 0; transform: translateY(4px); }
  66% { opacity: 1; transform: translateY(0); }
  92% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(-3px); }
}

@keyframes demoTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Show one settled, complete state instead of the animation: real motion,
   not just a faster version of it, is what prefers-reduced-motion asks to
   avoid. The global reset in tokens.css (near-zero duration, one iteration)
   would otherwise land on this component's 100% keyframe, which is
   everything faded out — an effectively blank card. */
@media (prefers-reduced-motion: reduce) {
  .demo-loading,
  .demo-typing {
    display: none;
  }

  .demo-snapshot,
  .demo-user,
  .demo-reply {
    animation: none;
    position: static;
    opacity: 1;
    transform: none;
  }

  .demo-slot {
    min-height: 0;
  }
}

/* extension/src/content-script/styles.ts's own .quick-row/.quick-chip,
   verbatim — the real quick-prompt chips shown before any conversation
   starts, not a marketing reinterpretation of them. Decorative only here
   (<span>, not <button>): the :hover still works, nothing to click. */
.quick-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-chip {
  font-family: var(--font-body);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(151, 182, 178, 0.16);
  border: 1px solid rgb(151, 182, 178);
  color: rgb(74, 63, 59);
}

.quick-chip:hover {
  background: rgb(121, 157, 156);
  border-color: rgb(121, 157, 156);
  color: #fff;
}

/* ---------- /support ---------- */
.support-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 50px 44px 64px;
}

.support-body h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.support-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 18px;
}

.support-body h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 40px 0 10px;
}

.support-body .updated {
  font-style: italic;
  font-size: 13px;
  margin: 0 0 4px;
}

.faq dt {
  font-weight: 700;
  margin: 18px 0 6px;
}

.faq dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- /welcome ---------- */
.welcome-body {
  max-width: 560px;
  margin: 0 auto;
  padding: 70px 44px 80px;
  text-align: center;
}

.welcome-body .mark-big {
  width: 48px;
  height: 53px;
  color: var(--concierge-brown);
  margin: 0 auto 24px;
}

.welcome-body h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

.welcome-body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px;
}

.welcome-sites {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

/* ---------- rendered markdown pages (/privacy, /terms) ---------- */
.doc-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 50px 44px 64px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.doc-body h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.doc-body h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 36px 0 12px;
}

.doc-body p,
.doc-body ul,
.doc-body ol {
  margin: 0 0 16px;
  color: var(--ink);
}

.doc-body li {
  margin-bottom: 6px;
}

.doc-body em {
  color: var(--muted);
}

.doc-body a {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-left: 22px;
    padding-right: 22px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .step:not(:first-child) {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(39, 38, 42, 0.12);
    padding-top: 26px;
  }

  .steps-card {
    padding: 32px 24px;
  }

  .steps {
    padding-left: 22px;
    padding-right: 22px;
  }

  .support-body,
  .welcome-body,
  .doc-body {
    padding-left: 22px;
    padding-right: 22px;
  }
}
