/**
 * File:          web-landing/src/assets/styles.css
 * Version:       1.0.0
 * Last Modified: 2026-09-18 07:05 AM ET
 * Changes:       Shared visual system for MemoraMobi landing and docs.
 */

:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --panel: #151916;
  --panel2: #1d221e;
  --text: #f0f3e9;
  --muted: #a7afa0;
  --line: #343c34;
  --accent: #FDC903;        /* CodePapi Yellow accent */
  --accent-ink: #0b0d0c;    /* Near-black text on yellow background for AAA contrast */
  --accent-glow: rgba(253, 201, 3, 0.15);
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Header & Nav */
.nav {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand b {
  color: var(--accent);
}

.brand-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.nav nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav nav a:hover {
  color: var(--text);
}

.nav nav a.active {
  color: var(--accent);
}

.nav .cta {
  padding: 9px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 4px;
  transition: filter 0.15s ease;
}

.nav .cta:hover {
  filter: brightness(1.08);
}

/* Hero Section */
.hero {
  padding: 52px 0 70px;
}

.kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  flex-wrap: wrap;
  gap: 12px;
}

.signal {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.signal i {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--accent-glow);
}

.hero h1 {
  font-size: clamp(44px, 8.5vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.08em;
  max-width: 900px;
  margin: 45px 0 28px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lede {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.hero-lede p {
  font-size: 20px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.5;
  margin: 0;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 13px 18px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
  font-size: 15px;
  transition: all 0.15s ease;
  background: transparent;
  color: var(--text);
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.button:hover {
  filter: brightness(1.1);
  border-color: var(--accent);
}

/* Dashboard Mock Console */
.console {
  margin-top: 58px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.console-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel2);
}

.console-grid {
  display: grid;
  grid-template-columns: 215px 1fr;
}

.side {
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  min-height: 405px;
}

.side .selected {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 11px;
  border-radius: 4px;
  margin: 16px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.side p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.main {
  padding: 25px;
}

.main-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
}

.main h2 {
  font-size: 28px;
  letter-spacing: -0.06em;
  margin: 0;
}

.add {
  border: 1px solid var(--line);
  padding: 8px 11px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  border-radius: 4px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.stat {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 4px;
}

.stat strong {
  display: block;
  font-size: 24px;
  color: var(--accent);
}

.memory {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.memory .icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 50%;
  font-size: 13px;
}

.memory small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 3px;
}

.pill {
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 4px 7px;
  color: var(--muted);
  border-radius: 3px;
}

.pulse {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  background: var(--panel2);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* Sections */
.section {
  padding: 94px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  max-width: 720px;
  margin: 14px 0 40px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.step {
  padding: 22px 20px 12px;
  border-right: 1px solid var(--line);
  min-height: 180px;
}

.step:last-child {
  border-right: 0;
}

.step b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}

.step h3 {
  font-size: 21px;
  margin: 40px 0 8px;
  letter-spacing: -0.05em;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* Privacy Section */
.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.privacy-copy p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  line-height: 1.6;
}

.privacy-card {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--panel);
  border-radius: 8px;
}

.privacy-card strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.privacy-card ul {
  padding: 0;
  margin: 0;
}

.privacy-card li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text);
  font-size: 15px;
}

/* Pricing Section */
.price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 840px;
}

.price-card {
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 8px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(253, 201, 3, 0.08);
}

.price-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.amount {
  font-size: 48px;
  letter-spacing: -0.08em;
  margin: 16px 0 4px;
  font-weight: 700;
}

.amount small {
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
}

.price-card p {
  color: var(--muted);
  min-height: 48px;
  margin: 0 0 16px;
}

.price-card ul {
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
  flex-grow: 1;
}

.price-card li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.footnote {
  color: var(--muted);
  font-size: 13px;
  margin-top: 24px;
}

.footnote a {
  color: var(--accent);
  text-decoration: underline;
}

/* Docs Page Styling */
.docs-header {
  margin-bottom: 40px;
}

.docs-header h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.07em;
  margin: 20px 0 16px;
}

.docs-intro {
  font-size: 19px;
  color: var(--muted);
  max-width: 76ch;
  line-height: 1.6;
}

.docs-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 32px;
}

.docs-card h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.endpoint-badge {
  display: inline-block;
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  margin: 8px 0 16px;
  word-break: break-all;
}

.auth-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.auth-item {
  border: 1px solid var(--line);
  background: var(--panel2);
  padding: 16px;
  border-radius: 6px;
}

.auth-item h4 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 15px;
}

.auth-item code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

/* Tool Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.tool-table th, .tool-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tool-table th {
  background: var(--panel2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-name {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
}

.tool-desc {
  color: var(--text);
  line-height: 1.6;
  max-width: 65ch;
}

/* Callout Box */
.callout {
  border: 1px solid var(--accent);
  background: rgba(253, 201, 3, 0.05);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.callout h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive Media Queries */
@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .wrap {
    width: min(100% - 28px, 1200px);
  }

  .nav nav {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

  .kicker {
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 64px);
    margin-top: 36px;
  }

  .hero-lede {
    display: block;
  }

  .hero-lede p {
    font-size: 17px;
    margin-bottom: 25px;
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }

  .main {
    padding: 18px;
  }

  .stats {
    gap: 8px;
  }

  .stat {
    padding: 10px;
  }

  .stat strong {
    font-size: 19px;
  }

  .memory {
    grid-template-columns: 27px 1fr;
  }

  .memory .pill {
    display: none;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step {
    border-bottom: 1px solid var(--line);
    min-height: 160px;
  }

  .privacy {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .price {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .console {
    animation: none;
  }
}
