/* ==========================================================================
   Landing page — layered on top of tools.css, which owns every colour token,
   the top bar, buttons and the footer. Nothing here redefines a token.
   ========================================================================== */

/* ---------- Google sign-in button ----------------------------------------
   Google's own pattern: white surface, full-colour G in its own well, one
   clear label. Kept white in both themes — a recoloured Google button reads
   as a knock-off, and this is the one control on the page that has to look
   like exactly what it is.
   ------------------------------------------------------------------------- */
.gbtn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 22px 6px 6px;
  border-radius: var(--r-pill);
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 0 0 0 rgba(247, 166, 0, 0);
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.gbtn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.34), 0 0 0 4px rgba(247, 166, 0, 0.16);
}
.gbtn:active { transform: translateY(0) scale(0.99); }
.gbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The logo sits in its own white well, which is what stops the multicolour
   mark from vibrating against the button surface at small sizes. */
.gbtn-logo {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}
.gbtn-logo svg { width: 18px; height: 18px; display: block; }
.gbtn-label { white-space: nowrap; }

/* On the light canvas a white button on near-white needs a real edge, and the
   dark-theme drop shadow does nothing for it. */
:root[data-theme="light"] .gbtn {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
:root[data-theme="light"] .gbtn:hover {
  border-color: rgba(0, 0, 0, 0.24);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 4px rgba(247, 166, 0, 0.18);
}

.gbtn-sm {
  gap: 9px;
  padding: 4px 16px 4px 4px;
  font-size: 0.85rem;
}
.gbtn-sm .gbtn-logo { width: 26px; height: 26px; }
.gbtn-sm .gbtn-logo svg { width: 15px; height: 15px; }

/* ---------- plan buttons ---------- */
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-cta {
  padding: 13px 24px;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--r-md);
  gap: 8px;
}
.btn-cta:hover { transform: translateY(-1px); }

/* "Start free" — deliberately quieter than the premium call to action, but
   still clearly a button rather than a link. */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--fg);
}
.btn-arrow {
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.btn-outline:hover .btn-arrow { transform: translateX(3px); }

.ll-plan .btn-cta { box-shadow: var(--shadow-sm); }
.ll-plan.is-featured .btn-cta { box-shadow: 0 6px 18px rgba(247, 166, 0, 0.22); }

/* An error banner reuses .banner's box and only recolours it. */
.banner-err {
  border-color: rgba(239, 69, 74, 0.35);
  background: rgba(239, 69, 74, 0.08);
  color: var(--fg);
}
.banner-err .banner-icon { color: var(--neg); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(24px, 5vw, 56px) 0 clamp(18px, 3vw, 28px);
  max-width: 62ch;
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero-accent { color: var(--accent); }
.hero-lede {
  margin: 0;
  color: var(--fg-dim);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.62;
}
.hero-lede b { color: var(--fg); font-weight: 600; }

/* ---------- the chart stage ---------- */
.ll-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(10px, 2vw, 18px);
  box-shadow: var(--shadow-md);
}

.ll-chart-host {
  position: relative;
  /* The scrub is the whole point; a stray text selection ruins the drag. */
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ll-chart-host svg {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  border-radius: var(--r-lg);
  outline: none;
}
.ll-chart-host svg:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

/* ---------- chart internals ---------- */
.ll-gridline {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.ll-gridlabel,
.ll-ticklabel {
  fill: var(--fg-faint);
  font-family: var(--font-num);
  font-size: 10.5px;
}
.ll-ticklabel { text-anchor: middle; }
.ll-tick { stroke: var(--border-strong); stroke-width: 1; }

.ll-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.1;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ll-area {
  fill: var(--accent);
  opacity: 0.07;
  stroke: none;
}

/* cycle extremes */
.ll-event-dot {
  fill: var(--bg);
  stroke: var(--fg-dim);
  stroke-width: 2;
  transition: r var(--dur) var(--ease), stroke var(--dur) var(--ease);
}
.ll-event.is-top    .ll-event-dot { stroke: var(--neg); }
.ll-event.is-bottom .ll-event-dot { stroke: var(--pos); }

.ll-event-halo {
  fill: var(--accent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.ll-event-label {
  fill: var(--fg-faint);
  font-size: 10.5px;
  font-weight: 500;
  transition: fill var(--dur) var(--ease), font-size var(--dur) var(--ease);
}

/* lit up when the cursor's price level sits on one */
.ll-event.is-near .ll-event-halo { opacity: 0.22; }
.ll-event.is-near .ll-event-dot  { r: 6; stroke-width: 2.6; }
.ll-event.is-near .ll-event-label {
  fill: var(--fg);
  font-size: 11.5px;
  font-weight: 700;
}

/* crosshair */
.ll-hline {
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
  opacity: 0.9;
}
.ll-vline {
  stroke: var(--fg-faint);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.ll-cursor {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 2.4;
}
/* every past crossing of the hovered price level */
.ll-crossing {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 1.6;
  opacity: 0.95;
}
.ll-hlabel-bg { fill: var(--accent); }
.ll-hlabel-text {
  fill: var(--accent-ink);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- hint + readout ---------- */
.ll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px 12px 10px;
  color: var(--fg-faint);
  font-size: 0.85rem;
}
/* `display: flex` above outranks the UA rule for [hidden], so the scrubber
   could never actually hide its own prompt. */
.ll-hint[hidden] { display: none; }
.ll-hint-cursor svg { width: 15px; height: 15px; display: block; }
.ll-hint-cursor {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  animation: ll-nudge 2.4s var(--ease) infinite;
}
@keyframes ll-nudge {
  0%, 100% { transform: translate(0, 0); opacity: 0.7; }
  50%      { transform: translate(0, -4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ll-hint-cursor { animation: none; }
}

.ll-readout { padding: 4px 2px 2px; }
.ll-readout:not(.is-live) { display: none; }

.ll-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ll-col-hits { grid-column: span 2; }

.ll-col-head {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-faint);
  font-weight: 600;
  margin-bottom: 6px;
}
.ll-big {
  font-family: var(--font-num);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.ll-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--fg-dim);
}
.ll-sub b { color: var(--fg); }
.ll-sub .pos { color: var(--pos); font-weight: 600; }
.ll-sub .neg { color: var(--neg); font-weight: 600; }

.ll-phase {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.ll-phase-bull         { background: var(--phase-bull); }
.ll-phase-bear         { background: var(--phase-bear); }
.ll-phase-accumulation { background: var(--phase-accumulation); }
.ll-phase-distribution { background: var(--phase-distribution); }

.ll-hits {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ll-hit {
  flex: 1 1 190px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  padding: 9px 12px;
}
.ll-hit.is-top    { border-left-color: var(--neg); }
.ll-hit.is-bottom { border-left-color: var(--pos); }
.ll-hit.is-empty  { border-left-color: var(--border-strong); opacity: 0.75; }

.ll-hit-kind {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  font-weight: 600;
}
.ll-hit-label { font-weight: 600; margin-top: 2px; }
.ll-hit-price {
  font-family: var(--font-num);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ll-hit-meta { font-size: 0.75rem; color: var(--fg-dim); margin-top: 2px; }
.ll-hit-meta .pos { color: var(--pos); }
.ll-hit-meta .neg { color: var(--neg); }

.ll-foot {
  margin: 14px 2px 2px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--fg-faint);
}
.ll-foot b { color: var(--fg-dim); }
.ll-foot-dim { display: block; margin-top: 4px; opacity: 0.8; }

/* ---------- sections ---------- */
/* tools.css styles a bare h3 as a small uppercase eyebrow, which is right
   inside a tool panel and wrong for a landing-page headline — it turned
   "Sign in or create your account" into shouting grey caps. */
.ll-section { padding: clamp(34px, 6vw, 64px) 0 0; }
.ll-h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fg);
  margin: 0 0 18px;
}

.ll-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.ll-tool {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px 46px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ll-tool:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.ll-tool-n {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.ll-tool h4 { margin: 0 0 6px; font-size: 1rem; letter-spacing: -0.01em; }
.ll-tool p  { margin: 0; font-size: 0.85rem; line-height: 1.6; color: var(--fg-dim); }

.ll-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ll-badge-free { background: rgba(32, 178, 108, 0.14); color: var(--pos); }
.ll-badge-prem { background: var(--accent-soft); color: var(--accent); }

/* ---------- plans ---------- */
.ll-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
  max-width: 780px;
}
.ll-plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.ll-plan.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow-md);
}
.ll-plan-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--fg-faint);
}
.ll-plan-price {
  font-family: var(--font-num);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 6px 0 16px;
}
.ll-plan-per {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-faint);
  margin-left: 6px;
}

/* The billing period, spelled out rather than left to a "/mo" abbreviation. */
.ll-plan-billing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -10px 0 16px;
  font-size: 0.78rem;
  color: var(--fg-faint);
}
.ll-plan-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}
.ll-plan-list li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 0.86rem;
  color: var(--fg-dim);
}
.ll-plan-list li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.ll-plan-list li.yes { color: var(--fg); }
.ll-plan-list li.yes::before { content: '✓'; color: var(--pos); }
.ll-plan-list li.no::before  { content: '✕'; color: var(--fg-faint); }

/* ---------- narrow screens ---------- */
@media (max-width: 700px) {
  .ll-col-hits { grid-column: span 1; }
  .ll-hit { flex: 1 1 100%; }
}
