/* Landing layout and night-themed form. Palette tokens live in styles.css. */
.landing-page {
  background: var(--paper);
  color: var(--ink);
}
.landing-top {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.landing-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.landing-wordmark img { flex-shrink: 0; border-radius: 11px; }
.landing-age { color: var(--muted); font-size: 11px; }
.landing-main {
  width: min(1120px, calc(100% - 48px));
  margin: 63px auto 0;
}
.landing-description {
  margin: 0;
  text-align: center;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -.25px;
  line-height: 1.75;
}
.demo { margin-top: 32px; }
.landing-intro { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}
.demo-paper {
  position: relative;
  background: var(--surface);
  padding: 31px 35px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.demo-memory { min-width: 0; padding-top: 8px; }
.demo-graph { display: block; width: 100%; height: auto; overflow: visible; }
.demo-graph text { fill: var(--ink); font-family: var(--sans); font-size: 17px; }
.demo-graph .graph-note { fill: var(--muted); font-size: 16px; }
.graph-edge { fill: none; stroke: var(--line); stroke-width: 1; transition: stroke 450ms; }
.graph-entity circle { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.graph-entity text { font-weight: 500; }
.graph-fact circle { fill: var(--muted); }
.graph-relevant-fact circle { fill: var(--accent); }
.graph-new { transition: opacity 450ms; }
.graph-new[data-new=true] .graph-edge,
.demo-memory[data-recalling=true] .graph-relevant { stroke: var(--accent); }
.demo-block { transition: opacity 300ms; }
.demo-block[data-visible=false], .graph-new[data-visible=false] { opacity: 0; visibility: hidden; }
.demo-block-label {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.demo-copy {
  font-family: var(--serif);
  font-optical-sizing: auto;
  position: relative;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.1px;
  white-space: pre-line;
}
.demo-reserve { color: transparent; user-select: none; }
.demo-typed { position: absolute; inset: 0; }
.demo-block.is-typing .demo-typed::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1em;
  vertical-align: -.12em;
  background: var(--accent);
  margin-left: 2px;
}
.demo-answer { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.demo-answer .demo-copy { font-size: 18px; line-height: 1.7; }
.landing-action { text-align: center; margin-top: 24px; }
.landing-page .button {
  border-radius: 4px;
  box-shadow: none;
  font-size: 13px;
  min-height: 47px;
  font-weight: 500;
}
.landing-page .button-primary { background: var(--accent); color: var(--on-accent); }
.landing-page .button-primary:hover { background: var(--accent-dark); }
.landing-page .button-outline { border-color: var(--line); }
.landing-page .button-outline:hover { background: var(--accent-soft); }
.landing-page .button:focus-visible, .landing-page a:focus-visible,
.landing-page summary:focus-visible, .landing-page input:focus-visible,
.landing-page button:focus-visible { outline-color: var(--accent); }
.landing-action > .button { min-width: 198px; }
.landing-action > p { color: var(--muted); font-size: 10px; margin-top: 13px; }
.landing-footer {
  width: min(740px, calc(100% - 48px));
  margin: 49px auto 0;
  padding: 18px 0 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}
.landing-about { flex: 1; min-width: 0; }
.landing-about summary {
  cursor: pointer;
  list-style: none;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.landing-about summary::-webkit-details-marker { display: none; }
.landing-about summary:hover { color: var(--ink); }
.landing-about > p { margin-top: 13px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  flex-shrink: 0;
}
.landing-footer-links > button { background: transparent; padding: 0; font-size: inherit; color: inherit; }
.landing-footer-links > a:hover, .landing-footer-links > button:hover { color: var(--ink); }
.landing-page .signup-dialog {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 6px;
}
.landing-page .signup-dialog::backdrop { background: #100e16b8; }
.landing-page .signup-dialog .section-kicker { color: var(--accent); }
.landing-page .signup-dialog h2 { color: var(--ink); }
.landing-page .dialog-close { color: var(--muted); }
.landing-page .dialog-close:hover { color: var(--ink); }
.landing-page .interest-options input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.landing-page .interest-options span { border-color: var(--line); }
.landing-page .interest-options input:focus-visible + span { outline-color: var(--accent); }
.landing-page input[name=contact] { border-color: var(--line); background: var(--paper); }
.landing-page input[name=contact]::placeholder { color: var(--muted); }
.landing-page .checkbox-label, .landing-page .form-small,
.landing-page .optional-label > span { color: var(--muted); }
.landing-page .text-button, .landing-page .checkbox-label a { color: var(--accent); }
.landing-page .text-button:hover { color: var(--accent-dark); }
.landing-page .form-error { color: #f1a2ae; }
.landing-page .skip-link { background: var(--accent); color: var(--on-accent); }
.landing-page .noscript-note { background: var(--accent-soft); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; gap: 20px; }
  .demo-memory { grid-row: 1; padding: 0; width: min(380px, 100%); margin-inline: auto; }
}
@media (max-width: 600px) {
  .landing-top { width: calc(100% - 40px); padding-top: 22px; }
  .landing-wordmark { font-size: 30px; }
  .landing-age { font-size: 10px; }
  .landing-main { width: calc(100% - 36px); margin-top: 37px; }
  .landing-description { font-size: 14px; line-height: 1.85; letter-spacing: -.15px; }
  .landing-intro { font-size: 11px; max-width: 280px; margin-inline: auto; }
  .demo { margin-top: 25px; }
  .demo-paper { padding: 24px 23px; }
  .demo-block-label { font-size: 10px; margin-bottom: 8px; }
  .demo-copy { font-size: 15px; line-height: 1.65; }
  .demo-answer { margin-top: 21px; padding-top: 20px; }
  .demo-answer .demo-copy { font-size: 16px; line-height: 1.65; }
  .landing-action { margin-top: 19px; }
  .landing-action > p { font-size: 9px; }
  .landing-footer {
    width: calc(100% - 40px);
    margin-top: 32px;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
  }
  .landing-about { flex-basis: 100%; text-align: center; }
  .landing-footer-links { width: 100%; justify-content: center; gap: 18px; font-size: 9px; }
  .landing-page .signup-dialog h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-block, .graph-new, .graph-edge { transition: none; }
}
