/* ============================================================
   Alpine — AI skin & wellness concierge
   Homepage feature section + launcher + slide-in drawer
   ============================================================ */

/* ---------- Homepage "Meet Alpine" feature ---------- */
.alpine-feature {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(199,154,75,.18), transparent 60%),
    var(--ink);
  color: var(--cream);
}
.alpine-feature-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
@media (max-width: 880px) { .alpine-feature-inner { grid-template-columns: 1fr; gap: 36px; } }
.alpine-feature-text h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 14px 0 18px; }
.alpine-feature-text > p { color: rgba(247,242,233,.78); max-width: 520px; }
.alpine-feature-list { list-style: none; margin: 26px 0 4px; }
.alpine-feature-list li {
  padding: 9px 0 9px 30px; position: relative; color: rgba(247,242,233,.9); font-size: 1rem;
}
.alpine-feature-list li::before {
  content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .9rem; top: 10px;
}
.alpine-disclaimer { font-size: .78rem; color: rgba(247,242,233,.5); margin-top: 20px; }

.alpine-feature-card { display: flex; justify-content: center; }
.alpine-chat-preview {
  background: var(--cream); color: var(--ink); border-radius: 22px;
  padding: 22px; width: 100%; max-width: 400px; box-shadow: var(--shadow);
}
.acp-head {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.acp-dot { width: 9px; height: 9px; border-radius: 50%; background: #5fae6a; box-shadow: 0 0 0 3px rgba(95,174,106,.2); }
.acp-msg { padding: 12px 16px; border-radius: 16px; font-size: .92rem; margin-bottom: 10px; max-width: 88%; line-height: 1.5; }
.acp-user { background: var(--ink); color: var(--cream); margin-left: auto; border-bottom-right-radius: 5px; }
.acp-bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.acp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.acp-chip {
  font-size: .76rem; padding: 8px 14px; border-radius: 100px; background: var(--gold);
  color: var(--ink); font-weight: 400;
}

/* ---------- Alpine-forward hero (homepage) ---------- */
.hero-alpine .eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.hero-alpine .eyebrow .al-orb {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3d79a, var(--gold) 55%, var(--gold-deep));
  animation: alpineBreathe 2.6s ease-in-out infinite;
}
.alpine-hero-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 100px;
  padding: 9px 9px 9px 18px; max-width: 580px;
  box-shadow: 0 22px 50px -18px rgba(0,0,0,.55);
  text-shadow: none;
}
.alpine-hero-bar .al-orb {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #f3d79a, var(--gold) 55%, var(--gold-deep));
  animation: alpineBreathe 2.6s ease-in-out infinite;
}
.alpine-hero-bar input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
}
.alpine-hero-bar input::placeholder { color: var(--ink-soft); }
.ahb-send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); font-size: 1.2rem; display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.ahb-send:hover { background: var(--gold-deep); transform: translateY(-1px); }
.alpine-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.alpine-hero-chips button {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45);
  color: var(--cream); padding: 9px 16px; border-radius: 100px;
  font-family: var(--sans); font-size: .85rem; cursor: pointer;
  backdrop-filter: blur(4px); transition: all .2s; text-shadow: none;
}
.alpine-hero-chips button:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero-secondary { margin-top: 24px; font-size: .92rem; }
.hero-secondary a { color: #f0d49a; text-decoration: underline; }
.hero-secondary a:hover { color: var(--white); }

/* ---------- Launcher (every page) ---------- */
.alpine-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream);
  border: 1px solid rgba(199,154,75,.5); border-radius: 100px;
  padding: 13px 20px 13px 16px; cursor: pointer; font-family: var(--sans);
  font-size: .85rem; letter-spacing: .04em; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.alpine-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(0,0,0,.55); }
.alpine-launcher .al-orb {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3d79a, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 0 rgba(199,154,75,.6);
  animation: alpinePulse 2.4s ease-out infinite, alpineBreathe 2.4s ease-in-out infinite;
}
@keyframes alpinePulse {
  0%   { box-shadow: 0 0 0 0 rgba(199,154,75,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(199,154,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(199,154,75,0); }
}
/* gentle "breathing" so Alpine feels alive */
@keyframes alpineBreathe {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.14); filter: brightness(1.15); }
}
/* orb in the open chat header also softly breathes */
.ad-header .al-orb { animation: alpineBreathe 2.6s ease-in-out infinite; }
/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .alpine-launcher .al-orb, .ad-header .al-orb { animation: none; }
}
.alpine-launcher.hide { display: none; }
@media (max-width: 540px) { .alpine-launcher .al-label { display: none; } .alpine-launcher { padding: 12px; } }

/* ---------- Backdrop + drawer ---------- */
.alpine-backdrop {
  position: fixed; inset: 0; background: rgba(30,26,22,.5); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 1001;
}
.alpine-backdrop.open { opacity: 1; pointer-events: auto; }

.alpine-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 100vw;
  background: var(--cream); z-index: 1002; transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(0,0,0,.4);
}
.alpine-drawer.open { transform: translateX(0); }
@media (max-width: 480px) { .alpine-drawer { width: 100vw; } }

.ad-header {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  border-bottom: 1px solid var(--line); background: var(--ink); color: var(--cream);
}
.ad-header .al-orb { width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3d79a, var(--gold) 55%, var(--gold-deep)); flex: none; }
.ad-title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.ad-sub { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,242,233,.6); }
.ad-close { margin-left: auto; background: none; border: 0; color: var(--cream); font-size: 1.5rem;
  cursor: pointer; line-height: 1; opacity: .8; }
.ad-close:hover { opacity: 1; }

.ad-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ad-empty { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.ad-empty b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--ink); }

.ad-msg { max-width: 90%; padding: 12px 16px; border-radius: 16px; font-size: .94rem; line-height: 1.55; }
.ad-msg.user { background: var(--ink); color: var(--cream); align-self: flex-end; border-bottom-right-radius: 5px; }
.ad-msg.bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.ad-msg.bot p { margin-bottom: 8px; }
.ad-msg.bot p:last-child { margin-bottom: 0; }
.ad-msg.bot strong { font-weight: 500; }
.ad-msg.error { background: #fbe9e4; border: 1px solid #e8c4b8; color: #8a3b22; align-self: flex-start; }

.ad-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.ad-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .5;
  animation: adBlink 1.2s infinite; }
.ad-typing span:nth-child(2){ animation-delay: .2s; } .ad-typing span:nth-child(3){ animation-delay: .4s; }
@keyframes adBlink { 0%,60%,100%{ opacity:.25; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-3px); } }

/* action buttons returned by tools */
.ad-actions { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; max-width: 90%; }
.ad-action {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px;
  background: var(--gold); color: var(--ink); font-size: .86rem; letter-spacing: .03em;
  text-decoration: none; border: 0; cursor: pointer; transition: background .2s;
}
.ad-action:hover { background: var(--gold-deep); color: var(--cream); }
.ad-action.secondary { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.ad-action.secondary:hover { background: var(--ink); color: var(--cream); }

.ad-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.ad-chip {
  font-size: .8rem; padding: 8px 14px; border-radius: 100px; background: var(--cream-2);
  border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; transition: all .2s;
}
.ad-chip:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.ad-footer { border-top: 1px solid var(--line); padding: 14px 16px; background: var(--cream); }
.ad-composer { display: flex; align-items: flex-end; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 8px 14px; }
.ad-composer textarea {
  flex: 1; border: 0; resize: none; background: transparent; font-family: var(--sans);
  font-size: .94rem; color: var(--ink); max-height: 120px; line-height: 1.4; outline: none;
}
.ad-send {
  flex: none; width: 38px; height: 38px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); font-size: 1.1rem; display: grid; place-items: center;
  transition: background .2s;
}
.ad-send:hover:not(:disabled) { background: var(--gold-deep); }
.ad-send:disabled { opacity: .4; cursor: not-allowed; }
.ad-disclaimer { font-size: .68rem; color: var(--ink-soft); text-align: center; margin-top: 8px; opacity: .8; }
