/* MemoryAI overview view: hero + how it works (personal + team) */

/* HERO */
.hero { padding: 72px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: 60px;
  align-items: center;
}
.hero-kicker, .how-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-kicker::before, .how-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.032em;
  text-align: left;
  max-width: none;
  margin: 0 0 20px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  max-width: 500px;
  margin: 0 0 30px;
}
.hero-ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color .15s;
}
.hero-link:hover { border-color: var(--navy); }

.seat-line {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  max-width: 460px;
}
.seat-line-top b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.seat-svg { width: 100%; height: 4px; display: block; border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.seat-trk { fill: var(--subtle); }
.seat-fill { fill: var(--emerald); transition: width .35s ease; }
.seat-note { font-size: 12.5px; color: var(--muted); }

/* hero product shot */
.hero-shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 12px 12px 0 0 var(--subtle);
}
.shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.shot-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.shot-tag { font-family: var(--mono); font-size: 11.5px; color: var(--emerald); }
.shot-body { display: grid; gap: 16px; padding: 22px 20px 24px; font-size: 14.5px; }
.shot-ask {
  justify-self: end;
  max-width: 86%;
  background: var(--navy);
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 12px 12px 3px 12px;
  line-height: 1.5;
}
.shot-mem {
  background: #FCFBF8;
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: 3px 8px 8px 3px;
  padding: 12px 14px 10px;
}
.shot-mem-head { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.shot-mem-list { list-style: none; }
.shot-mem-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
  padding: 6px 0;
  line-height: 1.45;
}
.shot-mem-list li + li { border-top: 1px dashed var(--border); }
.src {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  min-width: 34px;
  flex-shrink: 0;
}
.src-team { color: var(--emerald); }
.src-me { color: var(--muted); }
.shot-mem-foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.shot-reply { color: var(--body); line-height: 1.62; }

/* HOW IT WORKS */
#architecture.sec { padding: 76px 0 88px; border-top: 1px solid var(--border); }
.how-head { max-width: 780px; margin-bottom: 34px; }
#architecture h2 { font-size: 31px; line-height: 1.32; letter-spacing: -0.026em; }
.how-desc { font-size: 16px; color: var(--body); margin-top: 14px; max-width: 680px; line-height: 1.7; }

.scene-tabs {
  display: flex;
  gap: 30px;
  padding: 0 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow-x: auto;
}
.scene-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 15px 0 13px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.scene-tab:hover { color: var(--ink); }
.scene-tab.is-on { color: var(--ink); border-bottom-color: var(--navy); }

.map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  padding: 22px 28px 30px;
}
.scene-cap { display: none; font-size: 14.5px; color: var(--body); max-width: 780px; min-height: 48px; margin-bottom: 22px; line-height: 1.65; }
.map[data-scene="team"] .cap-team,
.map[data-scene="solo"] .cap-solo,
.map[data-scene="leave"] .cap-leave { display: block; }

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1.1fr) 92px minmax(0, 1fr);
  align-items: center;
}
.zone { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.zone-label {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 1px;
  align-items: baseline;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}
.zone-no { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--gold); grid-row: span 2; }
.zone-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.zone-sub { font-size: 12.5px; color: var(--muted); grid-column: 2; }

.card, .dev {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  transition: opacity .25s, background .25s, border-color .25s;
}
.ic {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.folder-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}
.folder-head .ic { color: var(--emerald); }
.file-list, .seat-list { list-style: none; }
.file-list li, .seat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--body);
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  transition: opacity .25s;
}
.file-list em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--emerald); }
.file-list .f-team { color: var(--ink); font-weight: 600; }
.card-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.solo-note { display: none; font-size: 13px; font-weight: 600; color: var(--gold); }

.dev-top { display: flex; align-items: center; gap: 10px; }
.ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dev-b .ava { background: #8A6C44; }
.dev-c .ava { background: #4E6A62; }
.dev-name { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dev-st { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.st-on { color: var(--emerald); }
.st-off { color: var(--error); display: none; }
.dev-rows {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.dev-rows > span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--body); transition: opacity .25s; }
.dev-rows i { font-style: normal; }
.row-me .ic { color: var(--navy); }
.row-team .ic { color: var(--emerald); }
.v-off { display: none; }

.seat-list b { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.seat-list .ok { color: var(--emerald); }
.seat-list .no { color: var(--error); display: none; }
.recv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}
.recv dt { color: var(--muted); font-weight: 600; }
.recv dd { color: var(--ink); }

/* connectors */
.link { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 10px; transition: opacity .25s; }
.link-drive { color: var(--emerald); }
.link-key { color: var(--gold); }
.link-txt { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.3; }
.link-line {
  position: relative;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px);
  background-size: 9px 1px;
  animation: flowX 1.4s linear infinite;
}
.link-line::before, .link-line::after {
  content: "";
  position: absolute;
  top: -4px;
  border-style: solid;
}
.link-line::before { left: -2px; border-width: 4.5px 6px 4.5px 0; border-color: transparent currentColor transparent transparent; }
.link-line::after { right: -2px; border-width: 4.5px 0 4.5px 6px; border-color: transparent transparent transparent currentColor; }
@keyframes flowX { to { background-position: 9px 0; } }

/* scene: personal only */
.map[data-scene="solo"] .zone-drive .card,
.map[data-scene="solo"] .link-drive,
.map[data-scene="solo"] .dev-b,
.map[data-scene="solo"] .dev-c,
.map[data-scene="solo"] .dev-a .row-team,
.map[data-scene="solo"] .seat-list li:not(:first-child) { opacity: .28; }
.map[data-scene="solo"] .link-drive .link-line { animation: none; }
.map[data-scene="solo"] .solo-note { display: block; }

/* scene: someone leaves */
.map[data-scene="leave"] .dev-c { background: #FBF4F1; border-color: rgba(160, 68, 42, 0.35); }
.map[data-scene="leave"] .dev-c .st-on,
.map[data-scene="leave"] .dev-c .v-on,
.map[data-scene="leave"] .seat-c .ok { display: none; }
.map[data-scene="leave"] .dev-c .st-off,
.map[data-scene="leave"] .dev-c .v-off,
.map[data-scene="leave"] .seat-c .no { display: inline; }
.map[data-scene="leave"] .dev-c .row-team { color: var(--error); }
.map[data-scene="leave"] .dev-c .row-team .ic { color: var(--error); }
.map[data-scene="leave"] .file-list .f-c { opacity: .35; }

/* steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.step-no {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 12px;
}
.steps b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.steps p { font-size: 13.5px; color: var(--body); line-height: 1.62; }

/* personal vs team */
.diff { margin-top: 64px; }
.diff-title, .qa-title { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 14px; }
.diff-scroll { overflow-x: auto; }
.diff-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 14px; }
.diff-table th, .diff-table td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--border); line-height: 1.55; }
.diff-table thead th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--ink); }
.diff-table thead th:last-child { color: var(--emerald); }
.diff-table tbody th { width: 22%; font-weight: 600; color: var(--ink); }
.diff-table td { width: 30%; color: var(--body); }
.diff-table td:last-child { width: 48%; color: var(--ink); }

/* Q and A */
.qa { margin-top: 56px; border-top: 1px solid var(--border); }
.qa-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.qa dt { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.qa dd { font-size: 14.5px; color: var(--body); line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
  .link-line { animation: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-shot { max-width: 580px; }
  .map-grid { grid-template-columns: 1fr; }
  .link { flex-direction: row; justify-content: center; gap: 12px; padding: 14px 0; }
  .link-line {
    width: 1px;
    height: 36px;
    background: repeating-linear-gradient(180deg, currentColor 0 5px, transparent 5px 9px);
    background-size: 1px 9px;
    animation-name: flowY;
  }
  .link-line::before { top: -2px; left: -4px; border-width: 0 4.5px 6px 4.5px; border-color: transparent transparent currentColor transparent; }
  .link-line::after { top: auto; bottom: -2px; right: auto; left: -4px; border-width: 6px 4.5px 0 4.5px; border-color: currentColor transparent transparent transparent; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-row { grid-template-columns: 1fr; gap: 6px; }
}
@keyframes flowY { to { background-position: 0 9px; } }

@media (max-width: 680px) {
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  #architecture.sec { padding: 52px 0 60px; }
  #architecture h2 { font-size: 24px; }
  .scene-tabs { padding: 0 16px; gap: 20px; }
  .map { padding: 18px 16px 22px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
}
