/* Ask Amy phone-first landing — call CTA + optional explainer web chat. */
:root {
  --line-bg: #0B0E14;
  --line-ink: #e8eaef;
  --line-muted: #9aa3ad;
  --line-mint: #2EE6C5;
  --line-white: #ffffff;
  --line-hand: #f5d76e;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
}
body.askamy-line {
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--line-ink);
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(46, 230, 197, 0.16), transparent 55%),
    radial-gradient(700px 400px at 100% 100%, rgba(46, 230, 197, 0.06), transparent 45%),
    var(--line-bg);
  display: flex;
  flex-direction: column;
}

.line-draft {
  margin: 0;
  padding: 0.85rem 1.25rem 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line-muted);
}

.line-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.15rem;
  padding: clamp(1.75rem, 8vh, 4rem) 1.25rem 2rem;
  max-width: 34rem;
  margin: 0 auto;
  width: 100%;
}

.line-brand-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  padding-bottom: 2.6rem;
  min-height: 3.2rem;
}

button.line-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.6rem 0.15rem;
  border: 0;
  border-radius: 1.4rem;
  background: transparent;
  color: var(--line-white);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
button.line-brand:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(1.02);
}
button.line-brand:focus-visible {
  outline: 2px solid var(--line-mint);
  outline-offset: 6px;
}
/* Same pulsing lozenge as /askamy — only when ready (not idle) */
button.line-brand.is-pulse::before,
button.line-brand[data-state="ready"]::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow:
    0 0 0 0 rgba(46, 230, 197, 0.55),
    0 0 28px 2px rgba(46, 230, 197, 0.35);
  animation: line-throb 1.7s ease-in-out infinite;
}
.line-wave {
  width: clamp(2.2rem, 6vw, 2.8rem);
  height: clamp(2.2rem, 6vw, 2.8rem);
  color: var(--line-mint);
  flex: 0 0 auto;
}
.line-wave .bar {
  fill: currentColor;
  transform-origin: center bottom;
  transform-box: fill-box;
}
/* Idle: static mint bars — no bounce, no throb */
button.line-brand[data-state="idle"] .line-wave {
  color: var(--line-mint);
  animation: none;
}
button.line-brand[data-state="idle"] .bar {
  animation: none;
  transform: none;
}
button.line-brand[data-state="ready"] .line-wave,
button.line-brand.is-pulse .line-wave {
  animation: line-ready 1.4s ease-in-out infinite;
}
button.line-brand[data-state="speaking"] .line-wave {
  animation: line-speaking 0.7s ease-in-out infinite;
  color: #ff5c5c;
}
button.line-brand[data-state="ready"] .bar,
button.line-brand.is-pulse .bar,
button.line-brand[data-state="speaking"] .bar {
  animation: line-bounce 1.2s ease-in-out infinite;
}
button.line-brand[data-state="speaking"] .bar {
  animation-duration: 0.7s;
}
button.line-brand .bar:nth-child(1) { animation-delay: 0s; }
button.line-brand .bar:nth-child(2) { animation-delay: 0.12s; }
button.line-brand .bar:nth-child(3) { animation-delay: 0.24s; }

.line-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}
.line-lockup-amy {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--line-mint);
}
.line-lockup-bar {
  display: inline-block;
  padding: 0.22em 0.55em 0.26em;
  border-radius: 0.28em;
  background: var(--line-white);
  color: var(--line-bg);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 4.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Tip sits under-left; space reserved always so show/hide does not shift layout */
.line-hand {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  max-width: 10.5rem;
  padding: 0;
  font-family: Caveat, "Segoe Print", cursive;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--line-hand);
  text-align: left;
  transform: rotate(-7deg);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease;
}
.line-hand.is-on {
  opacity: 1;
  visibility: visible;
  animation: line-hand-in 420ms ease-out;
}
.line-hand-arrow {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
  margin-left: 3.4rem;
  transform: translateY(0.1rem);
}
.line-hand-copy {
  display: block;
  padding-left: 0.15rem;
}

.line-title {
  margin: 0.35rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--line-white);
}

.line-lede {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  line-height: 1.45;
  color: var(--line-muted);
  max-width: 28rem;
}

.line-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 1.05rem 1.6rem 1.2rem;
  min-width: min(20rem, 100%);
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  border: 1px solid rgba(46, 230, 197, 0.45);
  background:
    linear-gradient(180deg, rgba(46, 230, 197, 0.16), rgba(46, 230, 197, 0.05));
  box-shadow: 0 0 0 1px rgba(46, 230, 197, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.line-call:hover {
  border-color: rgba(46, 230, 197, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(46, 230, 197, 0.18), 0 22px 48px rgba(0, 0, 0, 0.4);
}
.line-call:focus-visible {
  outline: 2px solid var(--line-mint);
  outline-offset: 3px;
}
.line-call-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line-mint);
}
.line-call-num {
  font-size: clamp(1.7rem, 6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--line-white);
}

.line-note {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--line-muted);
  max-width: 26rem;
}

.line-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hub-style Ask Amy text — overlay at top; does not move the page */
.line-text {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  gap: 0.45rem;
  width: min(36rem, calc(100% - 1.5rem));
  margin: 0.65rem auto 0;
  padding: 0.55rem 0.65rem 0.65rem;
  text-align: left;
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(11, 14, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.line-text.is-open {
  display: flex;
  flex-direction: column;
}
.line-text-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.line-text-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.15rem 0.15rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--line-white);
  font-size: 0.95rem;
}
.line-text-done {
  background: transparent;
  border: 0;
  color: var(--line-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.1rem;
}
.line-text-done:hover { color: var(--line-white); }
.line-thread {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.15rem 0.35rem;
  min-height: 1.5rem;
  max-height: min(28vh, 12rem);
  overflow: auto;
}
.line-turn {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.line-turn.is-user { color: var(--line-muted); }
.line-turn.is-amy { color: var(--line-ink); }
.line-composer input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font: inherit;
  background: rgba(0, 0, 0, 0.28);
  color: var(--line-white);
}
.line-composer input:focus {
  outline: 2px solid rgba(46, 230, 197, 0.45);
  outline-offset: 1px;
}
.line-chat-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--line-hand);
}

.line-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.78rem;
  color: var(--line-muted);
}
.line-foot a {
  color: var(--line-mint);
  text-decoration: none;
  font-weight: 600;
}
.line-foot a:hover { text-decoration: underline; }

@keyframes line-ready {
  0%, 100% { color: var(--line-mint); }
  50% { color: var(--line-white); }
}
@keyframes line-speaking {
  0%, 100% { color: #ff5c5c; }
  50% { color: var(--line-mint); }
}
@keyframes line-bounce {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1); }
}
@keyframes line-throb {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(46, 230, 197, 0.55),
      0 0 22px 1px rgba(46, 230, 197, 0.28);
    opacity: 1;
  }
  50% {
    box-shadow:
      0 0 0 14px rgba(46, 230, 197, 0),
      0 0 36px 6px rgba(46, 230, 197, 0.22);
    opacity: 0.92;
  }
}
@keyframes line-hand-in {
  from { opacity: 0; transform: rotate(-7deg) translate(0, 8px); }
  to { opacity: 1; transform: rotate(-7deg) translate(0, 0); }
}

@media (max-width: 520px) {
  .line-brand-wrap { padding-bottom: 2.4rem; }
  .line-hand {
    left: -0.15rem;
    max-width: 9.5rem;
    font-size: 1.25rem;
  }
  .line-hand-arrow { margin-left: 2.8rem; }
}
