/* Landing page. Own sheet on top of tokens.css; every class starts with lp- so nothing in app.css is touched. */

.lp {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  --lp-gutter: clamp(1.25rem, 4vw, 3rem);
  --lp-measure: 38rem;
  --lp-wide: 72rem;
}

.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp img,
.lp video { max-width: 100%; display: block; }

.lp a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.lp a:hover { color: var(--accent); }

.lp :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-1); }

.lp kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  padding: 0.1em 0.45em;
  border-radius: var(--r-1);
  background: var(--surface);
  box-shadow: var(--ring-strong), 0 1px 0 var(--border-strong);
  color: var(--ink-2);
  white-space: nowrap;
}

.lp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Top */

.lp-eyebrow { margin: 0 0 1.25rem; color: var(--ink-2); font-size: 0.9375rem; }
.lp-copy { max-width: var(--lp-measure); color: var(--ink-2); }
.lp-launch-note { max-width: 48rem; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--surface); }
.lp-shot img { width: 100%; height: auto; }

/* Hero: the headline is the one loud thing on the page */

.lp-hero {
  max-width: var(--lp-wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6rem) var(--lp-gutter) 0;
}

.lp-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.25rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}

.lp-title--small { font-size: clamp(2.5rem, 7vw, 5rem); }

.lp-lede {
  max-width: var(--lp-measure);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink-2);
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}

.lp-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  max-width: var(--lp-measure);
}

.lp-input {
  flex: 1 1 16rem;
  min-height: 3.25rem;
  padding: 0 1.1rem;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: var(--r-2);
  box-shadow: var(--ring-strong);
}

.lp-input::placeholder { color: var(--muted); }

.lp-input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }

.lp .lp-button {
  min-height: 3.25rem;
  padding: 0 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: var(--r-2);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background var(--dur-1) var(--ease);
}

.lp .lp-button:hover { background: var(--accent-hover); color: var(--on-accent); }

.lp-button--big { font-size: 1.2rem; padding: 0 1.8rem; min-height: 3.75rem; }

.lp-form-note {
  max-width: var(--lp-measure);
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Demo window */

.lp-demo {
  max-width: var(--lp-wide);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  padding: 0 var(--lp-gutter);
}

.lp-window {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3), var(--ring);
  overflow: hidden;
}

.lp-window-bar {
  height: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid var(--border);
}

.lp-window-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--border-strong);
}

.lp-window-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e1116;
}

.lp-window-screen img,
.lp-window-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.lp-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(to top, rgba(14, 17, 22, 0.35), rgba(14, 17, 22, 0) 45%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--ink);
  font: inherit;
}

.lp-play svg {
  width: 5.5rem;
  height: 5.5rem;
  padding: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-2) var(--ease-out);
}

.lp-play:hover svg { transform: scale(1.06); }

.lp-play span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  background: var(--surface);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-1);
}

.lp-play em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.lp-demo-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* Sections */

.lp-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
}

.lp-day,
.lp-more,
.lp-plans,
.lp-agent,
.lp-close {
  max-width: var(--lp-wide);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--lp-gutter) 0;
}

/* The day: a vertical clock. Times are real hours, so the list is a sequence. */

.lp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border-strong);
}

.lp-timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: 0 0 clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
}

.lp-timeline > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--canvas);
}

.lp-timeline time {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.lp-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.9rem;
}

.lp-step p { margin: 0; color: var(--ink-2); max-width: 34rem; }

.lp-quote {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--ink);
}

.lp-shot {
  margin: 0;
  grid-column: 2;
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-2), var(--ring);
  background: var(--surface);
}

.lp-shot--second { grid-column: 2; }

/* Also in the box: a definition list, not a card grid */

.lp-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  border-top: 2px solid var(--border-strong);
}

.lp-list > div {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.lp-list dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
}

.lp-list dd { margin: 0; color: var(--ink-2); }

/* Plans */

.lp-plans-lede {
  margin: -0.5rem 0 1.75rem;
  color: var(--ink-2);
  max-width: 34rem;
}

.lp-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.lp-plan {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--r-3);
  box-shadow: var(--ring);
}

.lp-plan--pro { box-shadow: 0 0 0 2px var(--accent); }

.lp-plan h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin: 0;
}

.lp-plan-price {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.lp-plan-price span { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }

.lp-plan ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--ink-2);
}

.lp-plan-link { margin-top: auto; padding-top: 1rem; font-weight: 600; }

/* Claude */

.lp-agent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.lp-agent-text p { color: var(--ink-2); max-width: 34rem; margin: 0 0 1rem; }

.lp-agent-code {
  background: var(--surface);
  border-radius: var(--r-3);
  box-shadow: var(--ring);
  padding: 1.5rem;
}

.lp-agent-code p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.lp-agent-code p + pre { margin-top: 0; }

.lp-agent-code pre {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-2);
  background: var(--ink);
  color: #e7eaf1;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lp-agent-code pre:last-child { margin-bottom: 0; }

/* Close and footer */

.lp-close {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.lp-foot {
  max-width: var(--lp-wide);
  margin: 0 auto;
  padding: 1.5rem var(--lp-gutter) 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lp-foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.lp-foot a { color: var(--muted); }

/* Cookie notice: the app's own, restated here because this page does not load app.css */

.lp-cookies {
  position: fixed;
  left: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(28rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--surface-raised);
  box-shadow: var(--shadow-2);
}

.lp-cookies[hidden] { display: none; }

.lp-cookies p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.lp-cookies button {
  flex-shrink: 0;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: var(--r-2);
  box-shadow: var(--ring-strong);
  cursor: pointer;
}

/* One reveal, on load, for the hero only */

@media (prefers-reduced-motion: no-preference) {
  .lp-title, .lp-lede, .lp-form, .lp-form-note, .lp-demo {
    animation: lp-rise 0.9s var(--ease-out) both;
  }

  .lp-lede { animation-delay: 0.1s; }
  .lp-form, .lp-form-note { animation-delay: 0.2s; }
  .lp-demo { animation-delay: 0.35s; }

  @keyframes lp-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* Dark mode: screenshots are light, so give them a quiet frame */

[data-theme="dark"] .lp-shot { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-2); }
[data-theme="dark"] .lp-agent-code pre { background: #000; }

/* Narrow screens */

@media (max-width: 52rem) {
  .lp-timeline > li { grid-template-columns: 1fr; }
  .lp-shot, .lp-shot--second { grid-column: 1; }
  .lp-agent { grid-template-columns: 1fr; }
}
